# guid-typescript

> Guid generator to typescript

Latest version **1.0.9** (published 2018-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install guid-typescript
pnpm add guid-typescript
yarn add guid-typescript
bun add guid-typescript
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2018-10-28 |
| First published | 2018-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 54 |
| Author | nicolas |
| Maintainers | nicolas.developer |
| Keywords | typescript, guid, identifier |

## Links

- npm: https://www.npmjs.com/package/guid-typescript
- Repository: https://github.com/NicolasDeveloper/guid-typescript
- Homepage: https://github.com/NicolasDeveloper/guid-typescript#readme
- Issues: https://github.com/NicolasDeveloper/guid-typescript/issues
- npm.io page: https://npm.io/package/guid-typescript

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2018-10-28
- 1.0.8 — 2018-10-23
- 1.0.7 — 2018-01-12
- 1.0.6 — 2018-01-12
- 1.0.5 — 2018-01-12
- 1.0.4 — 2018-01-12
- 1.0.3 — 2018-01-11
- 1.0.2 — 2018-01-11
- 1.0.1 — 2018-01-11
- 1.0.0 — 2018-01-11

## README

# Guid Typescript

Guid Typescript is library that let you generate guid code

## Instalation and usage
### Instalation

```
npm i guid-typescript --save
```

### Basic usage

```typescript
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 |

---
_Source: https://npm.io/package/guid-typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
