Skip to content

scalingapps/sa-unique-id-node

Repository files navigation

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())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published