Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elonehoo/unboxing
Fast, small and purely functional utility library for TypeScript.
https://github.com/elonehoo/unboxing
typescript utils vite
Last synced: about 2 months ago
JSON representation
Fast, small and purely functional utility library for TypeScript.
- Host: GitHub
- URL: https://github.com/elonehoo/unboxing
- Owner: elonehoo
- License: mit
- Archived: true
- Created: 2022-05-04T01:07:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T18:00:50.000Z (about 1 year ago)
- Last Synced: 2024-09-21T22:05:34.853Z (about 2 months ago)
- Topics: typescript, utils, vite
- Language: TypeScript
- Homepage: https://unboxing.elonehoo.xyz
- Size: 1.11 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Unboxing
> Fast, small and purely functional utility library for TypeScript.
## Install
```bash
# npm
npm i @unboxing/unboxing
# yarn
yarn add @unboxing/unboxing
# pnpm
pnpm i @unboxing/unboxing
```## Features
- Fast
- Small
- Fully Tested
- Purely functional
- Modern codebase## Structure of the library
- [@unboxing/object](https://www.npmjs.com/package/@unboxing/object) – for objects
- [@unboxing/string](https://www.npmjs.com/package/@unboxing/string) – for strings
- [@unboxing/promise](https://www.npmjs.com/package/@unboxing/promise) – for promises
- [@unboxing/array](https://www.npmjs.com/package/@unboxing/array) – for arrays or array-like objects
- [@unboxing/function](https://www.npmjs.com/package/@unboxing/function) – for functions – composition, currying and so on, also a set of simple functions (noop, T, F)
- [@unboxing/is](https://www.npmjs.com/package/@unboxing/is) – set of type checking methods
- [@unboxing/unboxing](https://www.npmjs.com/package/@unboxing/unboxing) – root contains utilities which don't satisfy any of the above categories or are universal## Usage
```typescript
import {pathOr,compose,toLower,map} from '@unboxing/unboxing'const toLowerName = compose(
toLower,
pathOr(['name'], '')
)
const result = map(toLowerName)([{name: 'testA'}, {name: 'testb'}])
```## License
[MIT](./LICENSE) License © 2022-Present [Elone Hoo](https://github.com/elonehoo)