Installations
npm install typescript-guid
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
12.18.0
NPM Version
6.14.5
Score
70.8
Supply Chain
75.7
Quality
75.3
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
avmaisak
Download Statistics
Total Downloads
195,531
Last Day
368
Last Week
1,280
Last Month
6,988
Last Year
97,454
GitHub Statistics
1 Stars
22 Commits
1 Watching
4 Branches
1 Contributors
Bundle Size
1.36 kB
Minified
631.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.3
Package Id
typescript-guid@1.0.3
Size
3.39 kB
NPM Version
6.14.5
Node Version
12.18.0
Publised On
25 Jun 2020
Total Downloads
Cumulative downloads
Total Downloads
195,531
Last day
12.5%
368
Compared to previous day
Last week
-39.5%
1,280
Compared to previous week
Last month
7.5%
6,988
Compared to previous month
Last year
117.8%
97,454
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Guid Typescript
Guid Typescript is a library that lets you generate guid code
Based on https://github.com/NicolasDeveloper/guid-typescript
original author https://github.com/NicolasDeveloper
Installation and usage
Installation
npm i typescript-guid --save
Basic usage
1import { Guid } from "typescript-guid"; 2 3export class Example { 4 public id: Guid; 5 constructor() { 6 this.id = Guid.create(); // ==> b77d409a-10cd-4a47-8e94-b0cd0ab50aa1 7 } 8}
Props and Methods
Method/Prop | Description | Test | Status |
---|---|---|---|
static isGuid (guid: any): boolean | Check if value is a guid code | OK | Ready |
static create ( ): Guid | Create a new guid | OK | Ready |
static createEmpty ( ): Guid | Create an empty guid | OK | Ready |
static parse (guid: string): Guid | Creates a guid instance from a given guid as string | OK | Ready |
static raw ( ): string | Create a guid code in string format | OK | Ready |
equals (other: Guid): boolean | Compare a guid code | OK | Ready |
isEmpty ( ): boolean | Validate if a guid is empty | OK | Ready |
toString ( ): string | Parse a guid instance to string format | OK | Ready |
toJSON ( ): any | Parse to JSON format | OK | Ready |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: ISC License: LICENSE:0
Reason
Found 0/12 approved changesets -- score normalized to 0
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'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 15 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.7
/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 MoreGathering detailed insights and metrics for typescript-guid