npm.io
1.0.2 • Published 7 years ago

pico-uid

Licence
MIT
Version
1.0.2
Deps
0
Size
7 kB
Vulns
0
Weekly
0

pico-uid

Tiny Unique ID generator


Table of Contents

Table of Contents
  • Install
  • Usage
  • Contribute
  • License
  • Install

    $ npm install pico-uid
    # OR
    $ yarn add pico-uid

    Usage

    const uid = require('pico-uid')
    
    uid(10) // Request UID with length of 10
    uid(5, 16) // Request UID with length of 5 using radix of 16 rather than default of 64

    Contributing

    Contributions are welcome!

    1. Fork it.
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Or open up a issue.

    License

    Licensed under the MIT License.