ikea-name-generator
v1.0.3
Published
A node.js module that returns a random ikea furniture name
Downloads
415
Readme
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 :)