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)
- Host: GitHub
- URL: https://github.com/tiaanduplessis/pico-uid
- Owner: tiaanduplessis
- License: mit
- Created: 2017-10-23T11:41:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:54:52.000Z (about 7 years ago)
- Last Synced: 2025-07-01T12:03:57.957Z (12 months ago)
- Topics: id, uid, uuid
- Language: JavaScript
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pico-uid
Tiny Unique ID generator
Table of Contents
Table of Contents
## 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.