Socket
Socket
Sign inDemoInstall

tinygen

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinygen

Tiniest of tiny base64 uid generators


Version published
Weekly downloads
429
increased by3.37%
Maintainers
1
Weekly downloads
 
Created
Source

tinygen npm version npm downloads

Tiniest of tiny base64 uid generators. Teeny-tiny browser version included, only 757 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('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 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.

FAQs

Package last updated on 21 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc