word-slug

0.0.1 • Public • Published

word-slug

Makes URL slugs from random words chained together.

Install

npm install word-slug

Example

var wordSlug = require('word-slug');
 
 
console.log(wordSlug(4)); // 'thrill-snail-wakeful-nonstop'
 
console.log(wordSlug(2)); // 'curly-voiceless'
 
// Defaults to 3
console.log(wordSlug()); // 'ripe-reading-flagrant'

Package Sidebar

Install

npm i word-slug

Weekly Downloads

62

Version

0.0.1

License

WTFPL

Last publish

Collaborators

  • download