Files
semaphore/packages/utils

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

Note

Please, for more information on the modules provided by this library, see its code documentation here.

🛠 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

// 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"