Skip to content
Myr

Simplify new binary tool

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent a9d9123 · Browse files · 6 files+114 added−148 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+114 added−148 removed

  • tests:+70 added−74 removed
  • other:+44 added−74 removed

6 files+114 added−148 removed

deleted:bin/utils/index.js-44 removed
modified:bin/nanoid.cjs+40 added-28 removed
deleted:bin/nanoid.test.js-74 removed
added:test/bin.test.js+70 added
modified:README.md+2 added-1 removed
473 unmodified lines
474$ npx nanoid --size 10475L3til0JS4z476```477478Custom alphabet can be specified with `--alphabet` (or `-a`) option (note that in this case `--size` is required):478Custom alphabet can be specified with `--alphabet` (or `-a`) option479(note that in this case `--size` is required):480481```sh482$ npx nanoid --alphabet abc --size 15483bccbcabaabaccab
47 unmodified lines
modified:README.ru.md+2 added-1 removed
461 unmodified lines
462$ npx nanoid --size 10463L3til0JS4z464```465466Изменить алфавит можно при помощи аргумента `--alphabet` (ли `-a`) (обратите внимание, что в этом случае `--size` обязателен):466Изменить алфавит можно при помощи аргумента `--alphabet` (ли `-a`)467(в этом случае `--size` обязателен):468469```sh470$ npx nanoid --alphabet abc --size 15471bccbcabaabaccab
46 unmodified lines