utils 0.0.0-pr-3639-20250204134039
Install from the command line:
Learn more about npm packages
$ npm install @fuellabs/utils@0.0.0-pr-3639-20250204134039
Install via package.json:
"@fuellabs/utils": "0.0.0-pr-3639-20250204134039"
About this version
@fuel-ts/utils is a sub-module for interacting with Fuel.
It's a collection of utilities and test utilities that may be useful in other places.
pnpm add @fuel-ts/utils
# or
npm add @fuel-ts/utils
import { normalizeString } from "@fuel-ts/utils";
console.log(normalizeString("fuel-labs"));
// FuelLabs
import { safeExec } from "@fuel-ts/utils/test-utils"; // note the `test` suffix
console.log(safeExec(() => 123));
// { error: null, result: 123 }
console.log(
safeExec(() => {
throw new Error("Some error");
}),
);
// { error: (Error: 'Some error'), result: null }
In order to contribute to @fuel-ts/utils
, please see the main fuels-ts monorepo.
The @fuel-ts/utils
changelog can be found at CHANGELOG.
The primary license for @fuel-ts/utils
is Apache 2.0
, see LICENSE.
Assets
- utils-0.0.0-pr-3639-20250204134039.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0