open-index/open-npm huggingface dataset:
npm package: @neuledge/id
Description: Globally unique identifier based on the upcoming UUIDv7 standard.
Latest version: 1.2.0

# Id

Globally unique identifier based on the upcoming UUIDv7 standard (using [TypeID](https://github.com/jetpack-io/typeid)).

## Install

Install the package:

```
yarn add @neuledge/id
```

## Usage

```js
import { Id, IdType } from '@neuledge/id';

const UserId = new Id('user');
type UserId = typeof UserId.type;

// Generate a new id
const userId = UserId.generate(); // user_2x4y6z8a0b1c2d3e4f5g6h7j8k

// using the id type
const id: UserId = userId;

// Validate an id
const isValid = UserId.is(userId); // true

// Get the prefix and suffix of an id
const prefix = UserId.prefix; // user
const suffix = UserId.getSuffix(userId); // 2x4y6z8a0b1c2d3e4f5g6h7j8k

// Get the id from a suffix
const id = UserId.fromSuffix(suffix); // user_2x4y6z8a0b1c2d3e4f5g6h7j8k
```
npm package: @neuledge/jest-ts-preset
Description: ## Initial Setup
Latest version: 1.0.1

# Jest Preset Config

## Initial Setup

1. Install the package:

```
yarn add -DW typescript jest @neuledge/jest-ts-preset
```

2. Create a `jest.config.json` file with the following content:

```json
{
  "preset": "@neuledge/jest-ts-preset"
}
```
npm package: @neuledge/jest-tsd-preset
Description: ## Initial Setup
Latest version: 1.0.2

# Jest Preset Config

## Initial Setup

1. Install the package:

```
yarn add -DW typescript jest @tsd/typescript @neuledge/jest-tsd-preset
```

2. Create a `jest.config.tsd.json` file with the following content:

```json
{
  "preset": "@neuledge/jest-tsd-preset"
}
```