Installations
npm install unique-string-generator
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
19.8.1
NPM Version
9.5.1
Score
70.1
Supply Chain
87.9
Quality
75.9
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
250,977
Last Day
577
Last Week
1,728
Last Month
8,584
Last Year
126,527
GitHub Statistics
4 Stars
11 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
13.51 kB
Minified
5.10 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.0
Package Id
unique-string-generator@1.1.0
Unpacked Size
6.04 kB
Size
2.51 kB
File Count
4
NPM Version
9.5.1
Node Version
19.8.1
Publised On
22 Apr 2023
Total Downloads
Cumulative downloads
Total Downloads
250,977
Last day
41.1%
577
Compared to previous day
Last week
-26.7%
1,728
Compared to previous week
Last month
5.1%
8,584
Compared to previous month
Last year
3%
126,527
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Unique-String-Generator
The Unique String Generator is a JavaScript package that generates a random string, number or ID that is almost 100% unique each time it's called. It can be used for a variety of purposes such as one-time sessions, email verification, pre-user IDs, activation codes, and more. Recetly we are adding full support of uuid world best library for ids with in this library.
Playground / Demo / Home page
https://unique-string-generator.vercel.app
Why You Can Use This
-
Does Not Matter How Many User Users You Have This Function Generate All Time New String.
-
You Can Use This Package on The Server Side as Well as The Client Side.
Where You Can Use This
- You Can Use this for multi-purpose like a one-time session, email verification, preuserid , activation code, and many more applications.
Notice
- UniqueOTP and UniqueCharOTP function is recently added and this both function is not generate 99.9% Unique because of some limitation but you can use as OTP & 2FA Purpose.
Installation
1$ npm install unique-string-generator
Usage
1const { UniqueString, UniqueNumber, UniqueStringId,UniqueNumberId,UniqueOTP,UniqueCharOTP,HEXColor,uuid } = require('unique-string-generator'); 2 3UniqueString() // ODgyXzE2Nzk1MDQyMDcxNDZfNDkx 4UniqueNumber() // 9861679504207152802 5UniqueStringId() // MzUz-MTY3OTUwNDIwNzE1Mg==-OTU3 6UniqueNumberId() // 613-1679504207152-896 7UniqueOTP() // 741187 8UniqueOTP(4) // 9298 9UniqueCharOTP() // KKOEGR 10UniqueCharOTP(4) // QCOS 11HEXColor() // #314511 12HEXColor(true) // 687e61 13uuid.v4() // 772716b8-e6e2-47ac-95e9-e8d99ce35124 14uuid.validate(uuid.v4()) // true 15
1import { UniqueString, UniqueNumber, UniqueStringId,UniqueNumberId,UniqueOTP,UniqueCharOTP,HEXColor,uuid } from 'unique-string-generator'; 2 3UniqueString() // ODgyXzE2Nzk1MDQyMDcxNDZfNDkx 4UniqueNumber() // 9861679504207152802 5UniqueStringId() // MzUz-MTY3OTUwNDIwNzE1Mg==-OTU3 6UniqueNumberId() // 613-1679504207152-896 7UniqueOTP() // 741187 8UniqueOTP(4) // 9298 9UniqueCharOTP() // KKOEGR 10UniqueCharOTP(4) // QCOS 11HEXColor() // #314511 12HEXColor(true) // 687e61 13uuid.v4() // 772716b8-e6e2-47ac-95e9-e8d99ce35124 14uuid.validate(uuid.v4()) // true 15
License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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'
Score
3
/10
Last Scanned on 2025-02-03
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