Installations
npm install @jsxtools/uid
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
13.10.1
NPM Version
lerna/3.20.2/node@v13.10.1+x64 (darwin)
Score
59.9
Supply Chain
63.9
Quality
75.5
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (83.3%)
JavaScript (16.7%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
jsxtools
Download Statistics
Total Downloads
1,596
Last Day
2
Last Week
10
Last Month
41
Last Year
184
GitHub Statistics
9 Stars
31 Commits
1 Forks
2 Watching
2 Branches
2 Contributors
Bundle Size
345.00 B
Minified
282.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.6
Package Id
@jsxtools/uid@1.0.6
Unpacked Size
9.40 kB
Size
3.96 kB
File Count
7
NPM Version
lerna/3.20.2/node@v13.10.1+x64 (darwin)
Node Version
13.10.1
Total Downloads
Cumulative downloads
Total Downloads
1,596
Last day
0%
2
Compared to previous day
Last week
25%
10
Compared to previous week
Last month
720%
41
Compared to previous month
Last year
-30.8%
184
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No dependencies detected.
uid ![](https://avatars.githubusercontent.com/u/52989093)
uid returns a unique URL-safe ID.
It is 187 bytes (197 gzipped).
Installation
1npm install @jsxtools/uid
Usage
1import uid from '@jsxtools/uid'; 2 3// give <body> a unique ID with 5 characters, like "wAl_H" 4// in 1s at 4000 IDs/s it has a 1% probability of at least 1 collision 5document.body.id = uid(5); 6 7// give <body> a unique ID like "wAl_Hh9fYRe" 8// in 4d at 4000 IDs/s it has a 1% probability of at least 1 collision 9document.body.id = uid(11); 10 11// give <body> a unique ID like "wAl_Hh9fYReEakFYN-7qr" 12// in 10,000,000y at 4000 IDs/s it has a 1% probability of at least 1 collision 13document.body.id = uid(21);
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: Creative Commons Zero v1.0 Universal: LICENSE.md:0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1
- Info: no jobLevel write permissions found
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/jsxtools/frontend/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/jsxtools/frontend/nodejs.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
3.4
/10
Last Scanned on 2025-01-27
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