Skip to content

alpheustangs/rowid.js

Folders and files

NameName
Last commit message
Last commit date
Feb 19, 2025
Apr 10, 2025
Apr 14, 2025
Apr 10, 2025
May 9, 2024
May 9, 2024
Nov 7, 2024
Apr 10, 2025
May 9, 2024
Apr 10, 2025
Nov 17, 2024
Apr 30, 2025
Apr 30, 2025
Jun 4, 2024
Nov 17, 2024

Repository files navigation

RowID

A time-based unique ID solution.

Installation

Install this package as a dependency in the project:

# 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:

import RowID from "rowid";

const id: string = RowID();

Or start a customization with the following code:

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.

For the CLI, please refer to the CLI documentation.

License

This project is licensed under the terms of the MIT license.