Julia implementation of Nanoid
Go to file
Reinaldy Rafli 1721e1767a
chore: add funding
2024-02-11 20:02:49 +07:00
.github chore: add funding 2024-02-11 20:02:49 +07:00
src fix: change default rng to RandomDevice 2022-03-31 21:10:43 +07:00
test feat: initialize nanoid 2022-03-20 10:01:53 +07:00
.gitignore Files generated by PkgTemplates 2022-03-20 08:38:51 +07:00
LICENSE chore: add funding 2024-02-11 20:02:49 +07:00
Project.toml feat: initialize nanoid 2022-03-20 10:01:53 +07:00
README.md feat: initialize nanoid 2022-03-20 10:01:53 +07:00

README.md

Nanoid

Build Status Coverage

Simple and minimalist Julia implementation of nanoid.

Install

Pkg.add("Nanoid")

Usage

import Nanoid

id = Nanoid.nanoid()
# => "tcDIFxMJHw6UgUnbI_6za"

id = Nanoid.nanoid(10)
# => "OutzQWa1SB"

id = Nanoid.nanoid(; alphabet = "ABCDEFGHIJ")
# => "GEHCAGFJIAHCJGIHHIHFF"

id = Nanoid.nanoid(10; alphabet = "abcdef")
# => "abeafebaab"

License

MIT