mirror of
https://github.com/valitydev/ng-core.git
synced 2024-11-06 08:15:20 +00:00
.. | ||
src | ||
.gitignore | ||
.npmrc | ||
karma.conf.js | ||
ng-package.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.lib.json | ||
tsconfig.lib.prod.json | ||
tsconfig.spec.json |
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