mirror of
https://github.com/valitydev/ng-core.git
synced 2024-11-06 08:15:20 +00:00
815e47f0c0
* fix: fix publish * fix: fix publish 1 * fix: fix publish 2 * Publish - @rbkmoney/id-generator@0.1.1-pr4.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
.npmrc | ||
CHANGELOG.md | ||
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