# ng2-uuid

> UUID module for Angular 2

Latest version **0.0.3** (published 2017-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install ng2-uuid
pnpm add ng2-uuid
yarn add ng2-uuid
bun add ng2-uuid
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-06-21 |
| First published | 2017-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Datsko |
| Maintainers | mikedatsko |
| Keywords | uuid, angular2, ng2 |

## Links

- npm: https://www.npmjs.com/package/ng2-uuid
- Repository: https://github.com/m1sh2/ng2-uuid
- Homepage: https://github.com/m1sh2/ng2-uuid#readme
- Issues: https://github.com/m1sh2/ng2-uuid/issues
- npm.io page: https://npm.io/package/ng2-uuid

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-06-21
- 0.0.2 — 2017-06-01
- 0.0.1 — 2017-05-29

## README

# Ng2-Uuid

## Setup

`app.module.ts`

```
import { NgModule } from '@angular/core';
import { UuidModule } from 'ng2-uuid';

@NgModule({
  imports: [
    UuidModule
  ]
})
export class AppModule { }
```

`app.component.ts`

```
import { Component } from '@angular/core';
import { Uuid } from 'ng2-uuid';

@Component({
  selector: 'app-root',
  template: `
    Your uuid code is: {{uuidCode}}
  `
})
export class AppComponent {
  uuidCode: string = '';

  constructor(
    private uuid: Uuid
  ) {
    this.uuidCode = this.uuid.v1();
  }
}
```

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