ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript

Home Page:https://zelark.github.io/nano-id-cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use customAlphabet() with version 3?

danielnordh opened this issue · comments

Is it possible to use customAlphabet() with version 3?
I have a legacy codebase using Common JS so not able to use v4 at the moment.

Currently using:
var { nanoid } = require("nanoid");

But would like to use customAlphabet()