sa-unique-id-node
v1.1.5
Published
A simple unique id generator that produce a unique id that is 23 chars/bytes long
Downloads
1
Readme
sa-unique-id-node
A simple unique id generator that produce a unique id that is 23 chars/bytes long This version is for Node.js. For the browser, see: sa-unique-id
code base
TypeScript
main method
id()
example using vanilla JS (node)
const { SaUniqueId } = require('./lib/index');
console.log('unique id', SaUniqueId.id());
console.log('unique id', SaUniqueId.id());
console.log('unique id', SaUniqueId.id());
console.log('unique id', SaUniqueId.id());
console.log('unique id', SaUniqueId.id());
example using TypeScript
import { SaUniqueId } from 'SaUniqueId'
console.log('SaUniqueId.id() sample output:')
console.log('id', SaUniqueId.id())