https://github.com/shellscape/nanoid-cli
A tiny cli wrapper for nanoid
https://github.com/shellscape/nanoid-cli
Last synced: 7 months ago
JSON representation
A tiny cli wrapper for nanoid
- Host: GitHub
- URL: https://github.com/shellscape/nanoid-cli
- Owner: shellscape
- Created: 2018-02-23T15:18:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T23:28:28.000Z (over 6 years ago)
- Last Synced: 2024-12-29T01:51:54.689Z (about 1 year ago)
- Language: JavaScript
- Size: 39.1 KB
- Stars: 26
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nanoid-cli
A tiny cli wrapper around [nanoid](https://github.com/ai/nanoid) to generate unique ids from the command line.
### Usage
```sh
$ nanoid
eftOYF0ie93F_yVhkOBcM
```
### Options
```
--alphabet, -a Use a different alphabet to generate the id
--size, -s Generate an id of a different size
```
### Examples
```sh
$ nanoid
sBiU98ZmAHvICIOnUoxOW
```
```sh
$ nanoid --size 32
xgX77wBFcY1lso9R12Y2lHrluUbLjAPV
```
```sh
$ nanoid --alphabet "_~0123456789abcdefghijklmnopqrstuvwxyz"
6me9uz2j_blasac~0p5as
```