Files
semaphore/packages/utils
cedoor ac830458fa chore: v4.0.0-beta.2
Former-commit-id: 43f555e229
2024-03-04 15:46:23 +00:00
..
2024-02-19 12:38:08 +00:00
2024-03-04 15:46:23 +00:00
2024-02-28 15:29:21 +00:00

Semaphore utils

A library to provide utility functions to the other Semaphore packages.

NPM license NPM version Downloads Documentation typedoc Linter eslint Code style prettier

🛠 Install

npm or yarn

Install the @semaphore-protocol/utils package with npm:

npm i @semaphore-protocol/utils

or yarn:

yarn add @semaphore-protocol/utils

📜 Usage

For more information on the functions and modules provided by @semaphore-protocol/utils, please refer to the TypeDoc documentation.

// You can import modules from the main bundle.
import { errors, types } from "@semaphore-protocol/utils"

// Or by using conditional exports.
import { requireNumber } from "@semaphore-protocol/utils/errors"
import { isNumber } from "@semaphore-protocol/utils/types"