Gathering detailed insights and metrics for nanoid-dictionary
Gathering detailed insights and metrics for nanoid-dictionary
Gathering detailed insights and metrics for nanoid-dictionary
Gathering detailed insights and metrics for nanoid-dictionary
npm install nanoid-dictionary
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
96.9
Quality
76.8
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
139 Stars
62 Commits
12 Forks
1 Watchers
1 Branches
8 Contributors
Updated on Jul 12, 2025
Latest Version
5.0.0
Package Id
nanoid-dictionary@5.0.0
Unpacked Size
8.53 kB
Size
3.38 kB
File Count
8
NPM Version
10.9.2
Node Version
23.10.0
Published on
Apr 26, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Predefined character sets to use with nanoid. Used by nanoid-generate.
Install nanoid and dictionary
npm i nanoid nanoid-dictionary
Note: If you plan on using import
style ES6 syntax (or node complains that it can't find the named export of the thing you're importing from nanoid-dictionary
please rather install the beta version, like this
npm i nanoid-dictionary@beta
Require a customAlphabet
from nanoid
and pass a string from the dictionary:
1import { customAlphabet } from 'nanoid'; 2import { lowercase } from 'nanoid-dictionary'; 3 4const lowercaseRandomString = customAlphabet(lowercase, 10);
numbers
Numbers from 0 to 9
1import { numbers } from 'nanoid-dictionary';
hexadecimalLowercase
Lowercase English hexadecimal lowercase characters: 0123456789abcdef
1import { hexadecimalLowercase } from 'nanoid-dictionary';
hexadecimalUppercase
Lowercase English hexadecimal uppercase characters: 0123456789ABCDEF
1import { hexadecimalUppercase } from 'nanoid-dictionary';
lowercase
Lowercase English letters: abcdefghijklmnopqrstuvwxyz
1import { lowercase } from 'nanoid-dictionary';
uppercase
Uppercase English letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
1import { uppercase } from 'nanoid-dictionary';
alphanumeric
Combination of all the lowercase, uppercase characters and numbers from 0 to 9
Does not include any symbols or special characters
1import { alphanumeric } from 'nanoid-dictionary';
nolookalikes
Numbers and english alphabet without lookalikes: 1
, l
, I
, 0
, O
, o
, u
, v
, 5
, S
, s
, 2
, Z
.
Complete set: 346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz
1import { nolookalikes } from 'nanoid-dictionary';
nolookalikesSafe
Same as nolookalikes
but with removed vowels and following letters: 3
, 4
, x
, X
, V
.
This list should protect you from accidentally getting obscene words in generated strings.
Complete set: 6789BCDFGHJKLMNPQRTWbcdfghjkmnpqrtwz
1import { nolookalikesSafe } from 'nanoid-dictionary';
cookieSafe
All the allowed characters for a cookie value defined in RFC6225.
1import { cookieSafe } from 'nanoid-dictionary';
cookieUnsafe
All the characters that actually work in modern browsers. Might not be suitable for servers, use with caution.
1import { cookieUnsafe } from 'nanoid-dictionary';
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
2 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 6/17 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More