ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
https://zelark.github.io/nano-id-cc/
MIT License
24.33k stars 788 forks source link

How to use customAlphabet() with version 3? #423

Closed danielnordh closed 1 year ago

danielnordh commented 1 year ago

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()