node-random-id

1.0.1 • Public • Published

Very simple plugin for random adjective-noun ids like appear.in

var randomid = require('node-random-id')

randomid.id(firstnumber, secondnumber, char)

This allows you to get an id from two numbers (adjectve and noun) and have a charcter inbetween. I recommend either a hyphen '-' or a space ' ' depending on how it is going to be used

Or

var randomid = require('node-random-id')

randomid.ranid()

This just gives you a random (adjective-noun) id with a hyphen in between

Package Sidebar

Install

npm i node-random-id

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • 101arrow