How to use customAlphabet() with version 3? #424
Closed
danielnordh
started this conversation in
General
Replies: 1 comment
-
var { customAlphabet } = require("nanoid");
var nanoid = customAlphabet('1234567890abcdef', 10) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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()
Beta Was this translation helpful? Give feedback.
All reactions