angular2-uuid

Angular 2 / TypeScript crypto-secure UUID generator

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
angular2-uuid
1.1.16 years ago7 years agoMinified + gzip package size for angular2-uuid in KB

Readme

angular2-uuid
Angular 2 UUID generator. Uses crypto-secure PRNG window.crypto.getRandomValues() if available, otherwise fallback to Math.random();

Install

npm install angular2-uuid --save

Use

Include in Angular2 / Ionic2 project with
import { UUID } from 'angular2-uuid';
...
let uuid = UUID.UUID();