Package Exports
- ts-prime
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ts-prime) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
The utility library designed for TypeScript.
Links
Online documentation - here
Test coverage report - here
Installation
npm i ts-primeyarn add ts-primeThen in .js or .ts
import * as P from "ts-prime"; // tree-shaking supported!Why ts-prime?
There are no universal utility libraries that fits my development need. Most of the development libraries did had function that I needed in day to day development.
ts-prime Design Goals
- The usage must be programmer-friendly, and that's more important than following the XYZ paradigm strictly.
- Manual annotation should never be required, and proper typings should infer everything. The only exception is the first function in
createPipe. - E6 polyfill is required. Core methods are reused, and data structure (like Map/Set) are not re-implemented.
- The implementation of each function should be as minimal as possible. Tree-shaking is supported by default. (Do you know that
lodash.keyByhas 14KB after minification?) - All functions are immutable, and there are no side-effects.
- Fixed number of arguments.
- Designed with typescript limitations in mind
MIT