Skip to content

aldy505/Nanoid.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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