Utilities
A set of common JS functions for Node and browser.
Goals:
- Just work for most cases, not a general framework.
- High performance & less code.
- Write with latest ECMAScript.
- Tree-shakeable.
- Not duplicated with FP libraries (lodash, underscore, etc.)
Install
This package is pure ESM, It cannot be require()
'd from CommonJS.
pnpm i @kaciras/utilities
The package has 2 entry points, "./node" for Node runtime and "./browser" for browsers. Most functions work for both, there are still a few functions that only work in specific runtime.
import { } from "@kaciras/utilities/node";
import { } from "@kaciras/utilities/browser";