@duskit/string
v0.0.1
Published
[](https://github.com/dusk-network/duskit/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@dus
Readme
@duskit/string
Functions for string manipulation.
TOC
Dev environment
The dev environment assumes that you have at least Node.js v20.x installed. The LTS version is 20.12.1 at the time of writing.
This package is part of the Duskit monorepo. Please refer to the main README for monorepo usage, changeset management and installation of dependencies.
Installation and usage
Install it with your favourite package manager:
npm install @duskit/string --saveImport the functions you need:
import { makeClassName } from "@duskit/string";
makeClassName({
foo: true,
bar: false,
baz: true,
}); // => "foo baz"NPM scripts
npm run checks- runs all health checks (formatting, linting, type checking, tests)npm run clean- removes thecoverage,docsandnode_modulesfoldersnpm run docs- generates the HTML documentation in thedocsfoldernpm run format- fixes the formatting in all filesnpm run format:check- performs the formatting checknpm run lint- performs the linting checknpm run lint:fix- fixes, where possible, linting errorsnpm run test- runs the test suitenpm run test:coverage- runs the test suite and generates the code coverage report in thecoveragefoldernpm run test:watch- runs the test suite in watch modenpm run typecheck- runs the type checkernpm run typecheck:watch- runs the type checker in watch mode
