Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
439
decreased by-33.38%
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"

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