Newts Parading Majestically
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@articulate/tinygen

0.1.2 • Public • Published

tinygen npm version npm version

Tiniest of tiny base64 uid generators. Teeny-tiny browser version included, only 624 bytes.

API

tinygen :: Number -> String

Parameters

  • Number len
    Desired length of id. Defaults to 16.

Returns

  • String id
    A base64 random uid.
const tinygen = require('@articulate/tinygen')
 
tinygen()   // => "K4UP_gkFtzHMt5TN"
tinygen(32) // => "4Z65y6VjtIaid-PpG6eSnzJ5P7lZwoNI"

Maintenance

To publish a new version, just:

yarn version
npm publish --access public

You 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.

Keywords

none

Install

npm i @articulate/tinygen

DownloadsWeekly Downloads

51

Version

0.1.2

License

UNLICENSED

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar