ng-core/projects/id-generator
2021-06-07 15:24:10 +03:00
..
src fix: tests fix? 2021-06-04 11:28:04 +03:00
.gitignore fix: recreate project with lerna commands 2021-06-03 22:12:58 +03:00
.npmrc fix: npmrc 2021-06-02 21:39:21 +03:00
karma.conf.js fix: tests fix?? 2021-06-04 12:13:18 +03:00
ng-package.json fix: fix publish 2021-06-07 15:24:10 +03:00
package-lock.json Publish 2021-06-07 11:57:18 +00:00
package.json Publish 2021-06-07 11:57:18 +00:00
README.md feat: update readme 2021-06-07 14:55:23 +03:00
tsconfig.lib.json fix: recreate project with lerna commands 2021-06-03 22:12:58 +03:00
tsconfig.lib.prod.json fix: recreate project with lerna commands 2021-06-03 22:12:58 +03:00
tsconfig.spec.json initial commit 2021-06-01 20:20:46 +03:00

ID Generator

The library for ID generation.

Installation

npm i --save @rbkmoney/id-generator

Full details in the monorepo root README.md

Usage

  • Inject service to your service
import { IdGeneratorService } from '@rbkmoney/id-generator';

constructor(private idGenerator: IdGeneratorService) {}
  • Call the methods you want
const uuid = this.idGenerator.uuid();

const shortUuid = this.idGenerator.shortUuid();

Contributing

Full details in the monorepo root README.md