Socket
Socket
Sign inDemoInstall

guid-typescript

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    guid-typescript

Guid generator to typescript


Version published
Weekly downloads
241K
increased by1.61%
Maintainers
1
Install size
5.35 kB
Created
Weekly downloads
 

Readme

Source

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/PropDescriptionTestStatus
static isGuid (guid: any): booleanCheck if value is a guid codeOKReady
static create ( ): GuidCreate a new guidOKReady
static createEmpty ( ): GuidCreate a guid emptyOKReady
static parse (guid: string): GuidGiven a guid code in string format, so create a guid instanceOKReady
static raw ( ): stringCreate a guid code in string formatOKReady
equals (other: Guid): booleanCompare a guid codeOKReady
isEmpty ( ): booleanValidate if a guid is emptyOKReady
toString ( ): stringParse a guid instance to string formatOKReady
toJSON ( ): anyParse to JSON formatOKReady

Keywords

FAQs

Last updated on 28 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc