@haroun/cuid-cli
Get a cuid (collision-resistant id)
Last updated 8 months ago by haroun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @haroun/cuid-cli 
SYNC missed versions from official npm registry.

cuid-cli Build Status

Command line interface for cuid

Install

$ npm install --global @haroun/cuid-cli

If you don't want to install the package globally, you can use npx instead

$ npx @haroun/cuid-cli

Usage

$ cuid --help

  Usage
    $ cuid [--slug] [number]
    $ echo [number] | cuid [--slug]

  Options
    -s, --slug Get slug

  Examples
    $ cuid
    ciyefyc630000x0y7mhd8o67n

    $ cuid 4
    ciyefyc630000x0y7mhd8o67n
    ciyefyc650001x0y7f9rqtegv
    ciyefyc650002x0y7e9826mhe
    ciyefyc650003x0y7az4v96ec

    $ cuid --slug
    1m0z7cm

    $ cuid 4 --slug
    1m0z7cm
    1n1z7om
    1o2z7ud
    1o3z73h

    $ echo '4' | cuid --slug
    1m0z7cm
    1n1z7om
    1o2z7ud
    1o3z73h

Related

  • cuid - API for this module

License

MIT © Harouna Traore

Current Tags

  • 2.0.1                                ...           latest (8 months ago)

5 Versions

  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 7
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |