0.2.3 • Published 3 years ago

stripe-nanoid v0.2.3

Weekly downloads
9
License
Unlicense
Repository
github
Last release
3 years ago

Stripe NanoID

A tiny, secure, unique ID generator for IDs that look similar to Stripe's.

INSTALL

To install the package:

$ npm install --save stripe-nanoid

RUN TESTS

$ npm run test

USAGE

A usage example is below:

const stripenanoid = require('stripe-nanoid');
stripenanoid('cus'); //=> "cus_rPaZmctZlfLGHdZHiljZY"

OPTIONS

A usage example with options is below:

const options = {
  alphabet: 'abcDEF',
  size: 4,
};

Then you can use them:

stripenanoid('cus', options)); //=> "cus_cFEa"
0.2.3

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago