1.0.1 • Published 3 years ago

transid v1.0.1

Weekly downloads
53
License
ISC
Repository
-
Last release
3 years ago

Project Title

For generating Strong Unique Transaction Id Globally

About

To generate strong 36(without prefix) Character UniqueId Globally. With prefix the length will be > 36.

Quickstart

1. Install

npm install transid

2. Create a transid (ES6 module syntax)

import { transid } from 'transid';
transid(); // ⇨ '2613u-159b147-u124n-219473-26q22s45p'

... or using CommonJS syntax:

const { transid } = require('transid');
transid(); // ⇨ '58qon-155s129-u163n-275635-37v32b14z'

3. Create a transid with prefix (ES6 module syntax)

import { transid } from 'transid';
transid('Prefix'); // ⇨ 'Prefix-453bo-152x156-u162x-212060-33o19t19e'

... or using CommonJS syntax:

const { transid } = require('transid');
transid('Prefix'); // ⇨ 'Prefix-61k3d-150b155-u133v-247687-50g27p45t'