https://github.com/alpheusday/rowid.js
A time-based unique ID solution
https://github.com/alpheusday/rowid.js
id javascript node rowid time-based typescript unique-id
Last synced: 5 months ago
JSON representation
A time-based unique ID solution
- Host: GitHub
- URL: https://github.com/alpheusday/rowid.js
- Owner: alpheusday
- License: mit
- Archived: true
- Created: 2024-05-09T13:05:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-06T00:47:27.000Z (about 1 year ago)
- Last Synced: 2025-08-02T08:56:14.682Z (11 months ago)
- Topics: id, javascript, node, rowid, time-based, typescript, unique-id
- Language: TypeScript
- Homepage: https://github.com/alpheusday/rowid.js/blob/main/docs/rowid/README.md
- Size: 1.26 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RowID
A time-based unique ID solution.
## Installation
Install this package as a dependency in the project:
```sh
# npm
npm i rowid
# Yarn
yarn add rowid
# pnpm
pnpm add rowid
# Deno
deno add npm:rowid
# Bun
bun add rowid
```
## Quick Start
Create an ID with the following code:
```ts
import RowID from "rowid";
const id: string = RowID();
```
Or start a customization with the following code:
```ts
import type { RowIDWithConfigResult } from "rowid";
import { RowIDWithConfig } from "rowid";
const { RowID }: RowIDWithConfigResult = RowIDWithConfig({
charList: "0123456789ABCDEFGHJKMNPQRSTVWXYZ",
randomnessLength: 22,
});
const id: string = RowID();
```
## Documentation
For more information, please refer to the [documentation](./docs/rowid/README.md).
For the CLI, please refer to the [CLI documentation](./docs/cli/README.md).
## License
This project is licensed under the terms of the MIT license.