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
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
128 Stars
60 Commits
12 Forks
2 Watching
3 Branches
8 Contributors
Updated on 24 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.7%
14,981
Compared to previous day
Last week
4.4%
69,987
Compared to previous week
Last month
16.3%
301,903
Compared to previous month
Last year
16.3%
2,716,271
Compared to previous year
No dependencies detected.
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
Uppercase 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';
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 7/17 approved changesets -- score normalized to 4
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
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 2024-11-25
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