Gathering detailed insights and metrics for angular-uuid4
Gathering detailed insights and metrics for angular-uuid4
Gathering detailed insights and metrics for angular-uuid4
Gathering detailed insights and metrics for angular-uuid4
npm install angular-uuid4
Typescript
Module System
Min. Node Version
Node Version
NPM Version
81.3
Supply Chain
80.4
Quality
77.2
Maintenance
100
Vulnerability
99.1
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
66 Stars
34 Commits
7 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Dec 30, 2021
Latest Version
0.3.2
Package Id
angular-uuid4@0.3.2
Unpacked Size
23.81 kB
Size
7.75 kB
File Count
12
NPM Version
6.4.1
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
36
Angular service that generates RFC4122 version 4 UUIDs / GUIDs.
Sample UUID: f7e81995-1a52-48a4-88d1-f979e1917b29
Based on pnegri's npm package: https://github.com/pnegri/uuid-js
Require the module in your app and call uuid4.generate()
.
Example:
1// add the uuid4 module to your app 2myapp = angular.module('myapp', ['uuid4']); 3 4// inject it into your component 5myapp.factory('FancyFactory', function(uuid4){ 6 return { 7 codeThatNeedsUUID: function() { 8 return "Look ma! I'm unique: " + uuid4.generate(); 9 } 10 }; 11});
You can also validate uuids.
1uuid4.validate('ded6dd9e-49d9-485b-bac1-da0ca0ae9d70') 2// true 3 4uuid4.validate('f81d4fae-7dec-11d0-a765-00a0c91e6bf6') 5// false, because it's a v1 uuid 6 7uuid4.validate('monkeys!') 8// false
This returns true if the uuid is a valid v4 uuid.
There are reports of Math.random()
not working properly on some systems. This may causes collisions (UUIDs that are the same).
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 3/30 approved changesets -- score normalized to 1
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
Reason
license 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 2025-07-07
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