@thewass/wass-lib
v0.7.0
Published
This is a TS Library where I keep my commonly used, generic functions and modules consolidated and up to date.
Readme
WassLib
Common TypeScript and JavaScript helpers for Node and browser-focused projects.
Requirements
- Node 20+
Build
One-click build (CJS + ESM + types):
npm run buildThe build emits:
dist/cjsfor CommonJS consumersdist/esmfor ESM and modern bundlersdist/typesfor TypeScript type definitions
Imports
import { date2Sql } from '@thewass/wass-lib';
import { hashRow } from '@thewass/wass-lib/node';
import { convertToString } from '@thewass/wass-lib/helpers';Extension APIs (Breaking)
String and Array prototype extensions are now opt-in and are not applied at import time.
import { applyStringExtensions } from '@thewass/wass-lib/extensions/string';
import { applyArrayExtensions } from '@thewass/wass-lib/extensions/array';
applyStringExtensions();
applyArrayExtensions();
const title = 'example'.capitalizeFirstLetter();
const chunks = [1, 2, 3, 4].splitToGroupsOf(2);Migration Notes
- Replace side-effect extension imports with explicit
apply*Extensions()calls. - Package subpaths are resolved through
exportsand target modern tooling.
