Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

ikea-name-generator

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 :)

Keywords

none

Install

npm i ikea-name-generator

DownloadsWeekly Downloads

12

Version

1.0.3

License

UNLICENSE

Unpacked Size

16.4 kB

Total Files

9

Last publish

Collaborators

  • avatar