https://github.com/haroun/cuid-cli
Get a cuid (collision-resistant id)
https://github.com/haroun/cuid-cli
cuid
Last synced: 5 months ago
JSON representation
Get a cuid (collision-resistant id)
- Host: GitHub
- URL: https://github.com/haroun/cuid-cli
- Owner: haroun
- License: mit
- Created: 2017-01-26T19:55:53.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T08:43:28.000Z (over 3 years ago)
- Last Synced: 2025-10-05T01:48:48.844Z (9 months ago)
- Topics: cuid
- Language: JavaScript
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cuid-cli  
> Command line interface for [cuid](https://github.com/ericelliott/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](https://github.com/ericelliott/cuid) - API for this module
## License
MIT © [Harouna Traore](https://github.com/haroun)