1.0.0-alpha.9 • Published 5 years ago
tgc2e-test v1.0.0-alpha.9
Guid Typescript
Guid Typescript is a library that lets you generate guid code
Installation and usage
Installation
npm i guid-typescript --saveBasic usage
import { Guid } from "guid-typescript";
export class Example {
public id: Guid;
constructor() {
this.id = Guid.create(); // ==> b77d409a-10cd-4a47-8e94-b0cd0ab50aa1
}
}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 |
1.0.0-alpha.9
5 years ago
1.0.0-alpha.8
5 years ago
1.0.0-alpha.7
5 years ago
1.0.0-alpha.6
5 years ago
1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago
1.0.0-alpha.0
5 years ago