Gathering detailed insights and metrics for uid-promise
Gathering detailed insights and metrics for uid-promise
Gathering detailed insights and metrics for uid-promise
Gathering detailed insights and metrics for uid-promise
npm install uid-promise
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
258 Stars
57 Commits
13 Forks
7 Watching
1 Branches
80 Contributors
Updated on 12 Nov 2024
TypeScript (53.72%)
JavaScript (46.28%)
Cumulative downloads
Total Downloads
Last day
-37%
120,097
Compared to previous day
Last week
0.6%
921,096
Compared to previous week
Last month
2.7%
3,860,417
Compared to previous month
Last year
734.6%
29,572,865
Compared to previous year
4
Creates a cryptographically secure UID with a 62 character range that can be safely used in URLs.
Install the package:
1npm i uid-promise
Then import it:
1import { uid } = from 'uid-promise';
Finally, call it:
1await uid(20);
uid(Number len) => Promise
Promise
that resolves with a string of random characters
of length len
len
must always be provided, else the promise is rejectedcrypto.randomBytes
is usedABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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-18
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