1. guid-typescript
Guid generator to typescript
guid-typescript
Package: guid-typescript
Created by: NicolasDeveloper
Last modified: Wed, 04 May 2022 09:28:34 GMT
Version: 1.0.9
License: ISC
Downloads: 941,516
Repository: https://github.com/NicolasDeveloper/guid-typescript

Install

npm install guid-typescript
yarn add guid-typescript

Guid Typescript

Guid Typescript is library that let you generate guid code

Instalation and usage

Instalation

npm i guid-typescript --save

Basic 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 a guid empty OK Ready
static parse (guid: string): Guid Given a guid code in string format, so create a guid instance 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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin