A TypeScript tool library providing common utilities and helpers.
- TypeScript-first — fully typed with strict mode enabled
- Zero dependencies — lightweight and fast
- ESM + CJS dual support — works with both
importandrequire - Tree-shakeable — only import what you need
- Well-tested — comprehensive test coverage
npm install @abcnx/metats// Import what you needimport{isNil,isEmpty,clamp}from'@abcnx/metats';isNil(null);// trueisEmpty([]);// trueclamp(15,0,10);// 10| Module | Description | Key exports |
|---|---|---|
types | Shared TypeScript type helpers | DeepPartial, Constructor, Consumer, ... |
utils | General-purpose utilities | isNil, isEmpty, clamp, debounce, ... |
array | Array manipulation helpers | chunk, unique, shuffle, groupBy, ... |
string | String manipulation helpers | camelCase, truncate, capitalize, ... |
object | Object manipulation helpers | deepClone, deepMerge, pick, omit, ... |
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test# Run tests with watch mode
npm run test:watch
# Lint
npm run lint
# Format code
npm run format:fixApache License 2.0