UNPKG

fortea

Version:

some tools for js, save your time for a cup of tea

59 lines (46 loc) 3.05 kB
<p align="center"> <img width="180" src="./fortea.png" alt="fortea logo"> </p> <p align="center">A comprehensive TypeScript function library offering a wide range of utilities.</p> # fortea [![NPM version](https://img.shields.io/npm/v/fortea.svg?style=flat)](https://npmjs.com/package/fortea) [![NPM downloads](https://img.shields.io/npm/dm/fortea.svg?style=flat)](https://npmjs.com/package/fortea) ## Description some tools for js, save your time for a cup of tea ☕️! `fortea` is a comprehensive TypeScript function library offering a wide range of utilities, from basic type checking to JSON querying and encoding transformations. Below is a detailed guide on how to use some of the key functions in this library. ## Features - lightweight, zero dependencies - well tested, with huge test coverage - easy to use, simple and clear API ## Install ```bash npm install fortea ``` ## Tools - [arrayUpsert](https://github.com/irychen/fortea/blob/main/src/arrayUpsert/index.ts) - [base64](https://github.com/irychen/fortea/blob/main/src/base64/index.ts) - [cloneArrayShallow](https://github.com/irychen/fortea/blob/main/src/cloneArrayShallow/index.ts) - [cloneDeep](https://github.com/irychen/fortea/blob/main/src/cloneDeep/index.ts) - [cloneShallow](https://github.com/irychen/fortea/blob/main/src/cloneShallow/index.ts) - [delayAsync](https://github.com/irychen/fortea/blob/main/src/delayAsync/index.ts) - [isArray](https://github.com/irychen/fortea/blob/main/src/isArray/index.ts) - [isBoolean](https://github.com/irychen/fortea/blob/main/src/isBoolean/index.ts) - [isClient](https://github.com/irychen/fortea/blob/main/src/isClient/index.ts) - [isEmpty](https://github.com/irychen/fortea/blob/main/src/isEmpty/index.ts) - [isFunc](https://github.com/irychen/fortea/blob/main/src/isFunc/index.ts) - [isInteger](https://github.com/irychen/fortea/blob/main/src/isInteger/index.ts) - [isNil](https://github.com/irychen/fortea/blob/main/src/isNil/index.ts) - [isNumber](https://github.com/irychen/fortea/blob/main/src/isNumber/index.ts) - [isObject](https://github.com/irychen/fortea/blob/main/src/isObject/index.ts) - [isString](https://github.com/irychen/fortea/blob/main/src/isString/index.ts) - [isTokenExpired](https://github.com/irychen/fortea/blob/main/src/isTokenExpired/index.ts) - [map](https://github.com/irychen/fortea/blob/main/src/map/index.ts) - [mergePath](https://github.com/irychen/fortea/blob/main/src/mergePath/index.ts) - [queryJsonStr](https://github.com/irychen/fortea/blob/main/src/queryJsonStr/index.ts) - [reactJsxJoin](https://github.com/irychen/fortea/blob/main/src/reactJsxJoin/index.ts) - [skipTake](https://github.com/irychen/fortea/blob/main/src/skipTake/index.ts) - [timeDuration](https://github.com/irychen/fortea/blob/main/src/timeDuration/index.ts) - [toBoolean](https://github.com/irychen/fortea/blob/main/src/toBoolean/index.ts) - [toNumber](https://github.com/irychen/fortea/blob/main/src/toNumber/index.ts) - [toPercentage](https://github.com/irychen/fortea/blob/main/src/toPercentage/index.ts)