litus
v1.7.0
Published
Commonly used utilities for JS and TS
Maintainers
Readme
Litus provides strongly-typed utils for:
- Arrays
- Functions
- Math
- Objects
- Random
- Strings
Why Litus?
- Powerful and unique utilities (e.g.
math.calc) - Tree-shakeable (import only what you need)
- Smart type inference
- Lightweight
- 100% test coverage
- High performance
- Well-documented
Installation
npm i litusyarn add litusUsage
Import all utils
For ES6+ or Typescript:
import * as _ from "litus";For CommonJS:
var _ = require("litus");Import only what you need
import { arr, func, math, obj, rand, str } from "litus";import { aprox, copy, group, memo, randWeight, template } from "litus";Contributing
Feel free to open an issue or fork this repo and create a pull request. Don't forget to give the project a star!
License
This package is released under the MIT License.
