Socket
Socket
Sign inDemoInstall

uid2

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uid2

strong uid


Version published
Weekly downloads
1.1M
increased by0.04%
Maintainers
1
Install size
4.16 kB
Created
Weekly downloads
 

Changelog

Source

0.0.4 - August 24, 2021

  • Add README.md
  • Add repository field to package.json
  • Add license field to package.json
  • Remove unused var, added param documentation

Readme

Source

uid2

NPM version

Generate unique ids. Pass in a length and it returns a string.

Installation

npm install uid2

Examples

Without a callback it is synchronous:

uid(10)
// => "hbswt489ts"

With a callback it is asynchronous:

uid(10, function (err, id) {
  if (err) throw err;
  // id => "hbswt489ts"
});

License

MIT

FAQs

Last updated on 24 Aug 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc