https://github.com/beenotung/tslib
utils library in Typescript
https://github.com/beenotung/tslib
Last synced: 4 days ago
JSON representation
utils library in Typescript
- Host: GitHub
- URL: https://github.com/beenotung/tslib
- Owner: beenotung
- License: bsd-2-clause
- Created: 2016-12-25T22:37:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-09-19T15:20:00.000Z (21 days ago)
- Last Synced: 2025-09-19T17:37:58.725Z (21 days ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@beenotung/tslib
- Size: 1.12 MB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tslib
utils library in Typescript
[](https://www.npmjs.com/package/@beenotung/tslib)
[](https://www.npmtrends.com/@beenotung/tslib)## Why tslib
My original lib [jslib](https://github.com/beenotung/jslib) was build before ES6 was popular, it has a number of ES6-like classes and polyfill which is not compatible with the standard.
This lib is base on ES6 (and Typescript ES7) which should gain more native performance.
This library is influenced by ramda, elixir, haskell.
## Installation
### Install from git
```bash
mkdir -p lib
cd lib
git submodule add https://github.com/beenotung/tslib.git
```### Install from npm
```bash
npm install @beenotung/tslib
```## Remark
- curry only work for function of length > 0
- breaking variety function (those who expect to accept variant length of arguments)
- no effect on function of length 0## Todo
- increase test coverage
## License
This is a Free and Open Source Software (FOSS) licensed under
[BSD-2-Clause](./LICENSE)