https://github.com/informatix8/short-unique-id
https://github.com/informatix8/short-unique-id
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/informatix8/short-unique-id
- Owner: informatix8
- Created: 2020-07-15T13:36:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T15:49:26.000Z (almost 5 years ago)
- Last Synced: 2025-02-15T21:28:43.982Z (4 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Short Unique ID
Generates short and unique IDs
## Example
```
import { ShortUniqueId } from '@informatix8/short-unique-id';const generator = new ShortUniqueId();
console.log(generator.hash('aaa'));
console.log(generator.hash('aaa', 100));
```## Release
```shell
npm run build
git tag -a vX.Y.Z
git push origin master
git push origin --tags
npm publish --access=public .
```