ikea-name-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

ikea-name-generator

A node.js module that returns a random ikea furniture name because it's so cool !

Installation

npm install ikea-name-generator --save
yarn add ikea-name-generator

Usage

JavaScript

var ikea = require('ikea-name-generator');
 
var furnitureWithMaybeSwedishCharacters = ikea.getName();
console.log(furnitureWithMaybeSwedishCharacters);
 
var furnitureWithoutSwedishCharacters = ikea.getName(false);
console.log(furnitureWithoutSwedishCharacters);
Output should be for example 'Pendubdö'
Output should be for example 'Ripce'

TypeScript

import { getName } from 'ikea-name-generator';
 
console.log(getName())
console.log(getName(false))
Output should be for example 'Pendubdö'
Output should be for example 'Ripce'

Test

npm run test

Credits

The algorithm to generate ikea furniture names comes from @crazykate/ikea-name-generator. You can see the generator live on ikea-name-generator.surge.sh

I just needed a package for node to use it into my project :)

Readme

Keywords

none

Package Sidebar

Install

npm i ikea-name-generator

Weekly Downloads

64

Version

1.0.3

License

UNLICENSE

Unpacked Size

16.4 kB

Total Files

9

Last publish

Collaborators

  • valdomar