An open API service indexing awesome lists of open source software.

https://github.com/tiaanduplessis/pico-uid

Tiny Unique ID generator (Less than 400 bytes gzipped and bundled)
https://github.com/tiaanduplessis/pico-uid

id uid uuid

Last synced: 11 months ago
JSON representation

Tiny Unique ID generator (Less than 400 bytes gzipped and bundled)

Awesome Lists containing this project

README

          

pico-uid



Tiny Unique ID generator





npm package version


npm downloads


standard JS linter


prettier code formatting


travis ci build status


project license


make a pull request



Table of Contents

Table of Contents

  • Install

  • Usage

  • Contribute

  • License
  • ## Install

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

    ## Usage

    ```js
    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](https://github.com/tiaanduplessis/pico-uid/issues).

    ## License

    Licensed under the MIT License.