0.2.0 • Published 9 years ago
tinygen v0.2.0
tinygen

Tiniest of tiny base64 uid generators. Teeny-tiny browser version included, only 757 bytes.
API
tinygen :: Number -> StringParameters
- Number
lenDesired length ofid. Defaults to16.
Returns
- String
idAbase64random uid.
const tinygen = require('tinygen')
tinygen() // => "K4UP_gkFtzHMt5TN"
tinygen(32) // => "4Z65y6VjtIaid-PpG6eSnzJ5P7lZwoNI"CLI
$ npm i -g tinygen
$ tinygen
Wsk6V84y9C0xI1Us
$ tinygen 32
05jrftGx1WROHu6_VQMVwLTtAxJ3AF1_Maintenance
To publish a new version:
yarn version
npm publish --access publicYou will be prompted for a new version number, the package will be rebuilt, and the tag pushed to git before publishing to npm. The second step is required until #1694 is resolved.