@manta-eu/lib
v0.1.7
Published
Pure TypeScript helpers shared across the Manta packages
Maintainers
Keywords
Readme
@manta-eu/lib
Small TypeScript helpers shared across the Manta packages — plain functions and types, no framework and no service calls.
Installation
pnpm add @manta-eu/libUsage
Each module is its own subpath, so you import only what you use:
import { arrayWrap } from "@manta-eu/lib/array";
import { humanBytes, humanDuration } from "@manta-eu/lib/humanize";Modules include array, date, number, color, file, enum, humanize, present,
countries, ad-platform-links and connection-string. present carries isPresent, which is how this repo checks for
a value rather than testing .length or truthiness.
This package exists so @manta-eu/client, @manta-eu/react and @manta-eu/rdf-lib share one copy
of these helpers rather than three. It is published because those packages depend on it; most
consumers reach it transitively rather than naming it directly.
License
MIT
