cuidgen
A command-line interface to generate collision-resistant ids (CUIDs) optimized for horizontal scaling and performance.
Last updated 9 months ago by davidwaterston .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cuidgen 
SYNC missed versions from official npm registry.

CUIDGEN

Semantic Versioning MIT Licence Version oclif

A command-line interface to generate collision-resistant ids (CUIDs) optimized for horizontal scaling and performance.

A CUID is a short, random string with some collision-busting measures. These are safe to use as HTML element id's and for unique, server-side record lookups.

This CLI is built on the work of Eric Elliott and makes use of the CUID package found at https://www.npmjs.com/package/cuid.

Installation

Install CUIDGEN globally as you would any other NPM package.

npm install -g cuidgen

Compatibility

CUIDGEN is built using oclif. As such, it requires Node 8+.

Examples

$ cuidgen --help

$ cuidgen
cjocr937d00008drr0pfxxtxx

$ cuidgen 3
cjocr937d00008drr0pfxxtxx
cjocr937e00018drrttyzbjg4
cjocr937e00028drrsgq9146m

$ cuidgen 3 --delimiter=,
cjocr937d00008drr0pfxxtxx,
cjocr937e00018drrttyzbjg4,
cjocr937e00028drrsgq9146m

$ cuidgen 3 -d=, --qualifier='"'
"cjocr937d00008drr0pfxxtxx",
"cjocr937e00018drrttyzbjg4",
"cjocr937e00028drrsgq9146m"

$ cuidgen 2 --short
sw0xrlc
sy1xrqb

$ cuidgen 2000 > myfile.txt

Release History

See the change log file for more details.

License

Copyright (c) 2018 David Waterston. All rights reserved. Distributed under an MIT license. See the LICENSE file for more details.

Current Tags

  • 1.1.0                                ...           latest (9 months ago)

2 Versions

  • 1.1.0                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |