stripe-nanoid

0.2.3 • Public • Published

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"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    3
    • latest

Version History

Package Sidebar

Install

npm i stripe-nanoid

Weekly Downloads

3

Version

0.2.3

License

Unlicense

Unpacked Size

5.31 kB

Total Files

5

Last publish

Collaborators

  • klipitkas