webservices/node_modules/uid2
2025-03-23 15:33:23 -05:00
..
HISTORY.md [INIT] Nuevo proyecto WEBSERVICES (Nodered) 2025-03-23 15:33:23 -05:00
index.js [INIT] Nuevo proyecto WEBSERVICES (Nodered) 2025-03-23 15:33:23 -05:00
LICENSE [INIT] Nuevo proyecto WEBSERVICES (Nodered) 2025-03-23 15:33:23 -05:00
package.json [INIT] Nuevo proyecto WEBSERVICES (Nodered) 2025-03-23 15:33:23 -05:00
README.md [INIT] Nuevo proyecto WEBSERVICES (Nodered) 2025-03-23 15:33:23 -05:00

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