Needless Patchouli Manufacture

    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"

    Install

    npm i stripe-nanoid

    DownloadsWeekly Downloads

    29

    Version

    0.2.3

    License

    Unlicense

    Unpacked Size

    5.31 kB

    Total Files

    5

    Last publish

    Collaborators

    • klipitkas