Library packed with your basic code utils.
The documentation is available at aamir.tech.
Install with npm
npm install @aamirtech/utils
Install with yarn
yarn add @aamirtech/utils
Install with bun
bun add @aamirtech/utils
import { Id } from "@aamirtech/utils";
console.log(Snowflake.generate());
// 7167216930510602240
Tests are written in Bun Test. To run tests, run the following command:
bun test
To run tests with coverage, run the following command:
bun test:coverage
The project contains part based on a fork off of (snowflake-generator)[https://github.com/FatAussieFatBoy/snowflake-generator].