1.1.0 • Published 8 months ago
litus v1.1.0
Litus provides strongly-typed utils for:
- Arrays: chunk, from, group, ...
- Functions: apply, curry, unapply, ...
- Math: mean, median, mod, ...
- Object: copy, entries, merge, ...
- Time: convert, format, setDayTime, ...
Installation
Using npm
npm i litus
Using yarn
yarn add litus
Usage
Import all utils
For ES6+ or Typescript
import * as ls from "litus";
For CommonJS
var ls = require("litus");
Import what you need only
import type { Literal, TimeFormat } from "litus";
import { arr, math, obj, Time } 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 released under the MIT License.