ai/nanoid is a tiny, secure, URL-friendly, unique string ID generator for JavaScript. The nanoidr package is an R port of NanoID.
The original NanoID library generates random strings using crypto API,
which is replaced with openssl::rand_bytes
in nanoidr package. See
also Generating Secure Random Numbers in
R
for more details about openssl::rand_bytes
.
remotes::install_github("paithiov909/nanoidr")
## Basic usage.
nanoidr::nanoid()
#> [1] "uyfyn3rUgFu0vuho4YUK2"
## You can use your own random number generator.
nanoidr::nanoid(29, func = function(size) {
runif(size, 0, 255)
})
#> [1] "sSShxYv1UCtr5yfU9WPSotUgRewlZ"
MIT license.
Icon made by Those Icons from www.flaticon.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.