martin-mok / tslib

lightweight lib, rewrite of jslib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tslib

npm Package Version

utils library in Typescript

Why tslib

My original lib 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

mkdir -p lib
cd lib
git submodule add https://github.com/beenotung/tslib.git

Install from npm

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

  • change tests into to adopt jest

License

This is a Free and Open Source Software (FOSS) licensed under BSD-2-Clause

About

lightweight lib, rewrite of jslib

License:BSD 2-Clause "Simplified" License


Languages

Language:TypeScript 98.9%Language:Shell 0.5%Language:HTML 0.4%Language:JavaScript 0.1%Language:PHP 0.1%