nonce generator in the 'adjective adjective animal' pattern that that Gfycat (and Twitch) uses
npm install gfynoncegfynonce is a "small" library that generates unique word compositions in the "adjective, adjective, animal" format that both Gfycat and Twitch uses. It tries it's best to generate nonces without repeating the same adjective and allows _some_ customization, such as providing the number of adjectives desired or the separator character.
For your convenience, it is available in 3 forms, so choose whatever will work best for you:
npm i -g gfynonce
`Then, simply run
gfynonce and it will generate a nonce with the default settings.
`
$ gfynonce
FatSmallAmericanBulldog
`
Additionally, you can provide some arguments to customize it, such as --adjectives and --separator .
`
$ gfynonce --adjectives 5 --separator .
Big.Small.Fancy.Elegant.Shy.Dipper
`$3
The installation procedure is almost the same, simply add it to your current project:
`
npm i --save gfynonce
`And you should be good to import it!
`js
const gfynonce = require('gfynonce');console.log(gfynonce({ adjectives: 1, separator: '_' }));
// Tiny_Hog
`$3
Unpkg kindly provides a fast CDN for NPM packages which you can use to access the UMD script.
`html
``