Skip to content

Repository files navigation

MetaTS

A TypeScript tool library providing common utilities and helpers.

Features

  • TypeScript-first — fully typed with strict mode enabled
  • Zero dependencies — lightweight and fast
  • ESM + CJS dual support — works with both import and require
  • Tree-shakeable — only import what you need
  • Well-tested — comprehensive test coverage

Installation

npm install @abcnx/metats

Usage

// Import what you needimport{isNil,isEmpty,clamp}from'@abcnx/metats';isNil(null);// trueisEmpty([]);// trueclamp(15,0,10);// 10

Modules

ModuleDescriptionKey exports
typesShared TypeScript type helpersDeepPartial, Constructor, Consumer, ...
utilsGeneral-purpose utilitiesisNil, isEmpty, clamp, debounce, ...
arrayArray manipulation helperschunk, unique, shuffle, groupBy, ...
stringString manipulation helperscamelCase, truncate, capitalize, ...
objectObject manipulation helpersdeepClone, deepMerge, pick, omit, ...

Development

# 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:fix

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages