Gathering detailed insights and metrics for nid
Gathering detailed insights and metrics for nid
Gathering detailed insights and metrics for nid
Gathering detailed insights and metrics for nid
nv-facutil-nid
eg-nid
Extract basic info from Egyptian NIDs
nid-parser
NID (Native Interface Definition) is a portable C/C++ API description format that parses into JSON format for convenient bindings generation
nid-webauthn-emulator
[](https://github.com/Nikkei/nid-webauthn-emulator/actions/workflows/ci.yml) [](https://ope
Nice clean-mouthed unique id generation, without any swearing!
npm install nid
Typescript
Module System
Min. Node Version
Node Version
NPM Version
89.9
Supply Chain
100
Quality
75.8
Maintenance
100
Vulnerability
100
License
JavaScript (60.36%)
TypeScript (38.39%)
HTML (1.25%)
Total Downloads
5,143,968
Last Day
925
Last Week
14,483
Last Month
47,058
Last Year
573,331
MIT License
33 Stars
41 Commits
6 Forks
5 Watchers
2 Branches
4 Contributors
Updated on Feb 05, 2025
Latest Version
2.0.1
Package Id
nid@2.0.1
Unpacked Size
20.40 kB
Size
6.98 kB
File Count
11
NPM Version
8.5.0
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
198.4%
925
Compared to previous day
Last Week
71.1%
14,483
Compared to previous week
Last Month
24.7%
47,058
Compared to previous month
Last Year
-37.1%
573,331
Compared to previous year
8
A Node.js module that generates random identifiers for public consumption. Swear words not included.
![]() | This open source module is sponsored and supported by Voxgig. |
---|
This module is useful for custom short links, password generation and any sort of unique tag an end user might see.
By default the big seven curse words are avoided (thanks @dshaw!). The Battlestar Galactica version of one of the big seven is also avoided.
NOTE: this module is not cryptographically secure and should only be used in low-risk environments.
1var nid = require('nid') 2 3// generate a 6 character alphanumberic id, like: ytnzt2 4console.log( nid() ) 5 6// generate a 3 character alphanumberic id, like: 5rg 7console.log( nid(3) ) 8
1npm install nid
You can change the length of the identifier string by passing an integer to nid, as per the quick example above. The default alphanumeric alphabet is used.
You can change the ids generated by passing an options object to the nid function. A new, custom, function is returned. For example:
1var mynid = require('nid')({length:8}) 2 3// generate an 8 character alphanumberic id, like: qnzvetvp 4console.log( mynid() )
You have the following options:
You can specify the curses as:
As a convenience you can use the following alphabet shortcuts:
1var nid = require('nid') 2 3var nid_ABC = nid({alphabet:'ABC'}) 4console.log(nid_ABC()) // prints something like BCCABB 5 6var nid_hex = nid({hex:1}) 7console.log(nid_hex()) // prints something like 47b5df 8 9var nid_noa = nid({curses:/a/}) 10console.log(nid_noa()) // never includes an 'a' character
Keep getting a random character from a given alphabet of characters, until you have enough to meet the length requirement. Then check if it contains a curse word (case-insensitive). If so, try again.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/27 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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