Skip to content

Getting Started

Documented version

v1 predates the unified @helpers4/all version line — each package released independently:

PackageVersion
@helpers4/observable1.0.1
@helpers4/promise1.1.0
@helpers4/string1.0.1
@helpers4/url1.0.1

Changelog

v1 predates the @helpers4/all bundle — install each category you need directly:

pnpm add @helpers4/observable@1 @helpers4/promise@1 @helpers4/string@1 @helpers4/url@1
# or: npm install @helpers4/observable@1 @helpers4/promise@1 @helpers4/string@1 @helpers4/url@1

Available packages: @helpers4/observable, @helpers4/promise, @helpers4/string, @helpers4/url.

import { combine } from '@helpers4/observable';
import { meaningPromiseOrThrow } from '@helpers4/promise';
import { labelize } from '@helpers4/string';
import { removeEndingSlash } from '@helpers4/url';

const cleanUrl = removeEndingSlash('https://example.com/');
const label = labelize('hello-world');

Promise.resolve(cleanUrl)
  .then(meaningPromiseOrThrow('URL is required'))
  .then(console.log);

All imports are tree-shakable — your bundler will only include the functions you actually use.

const { removeEndingSlash } = require('@helpers4/url');
RuntimeSupport
Node.js>=10

Browser, Deno, and Bun compatibility were not explicitly tracked for v1 — no formal support matrix like the current one existed yet.

v1 predates the current testing infrastructure (property-based tests, contract tests, mutation testing, OpenSSF Scorecard, …). Each package shipped with a basic unit test suite (*.spec.ts, colocated with the implementation) — nothing beyond that was formally tracked.

AGPL-3.0 — See License for details.