An open API service indexing awesome lists of open source software.

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

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.