tslib
async-utils
tslib | async-utils | |
---|---|---|
2 | 1 | |
6 | 0 | |
- | - | |
8.1 | 10.0 | |
20 days ago | over 1 year ago | |
TypeScript | TypeScript | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tslib
- Pipe Operator (|>) For JavaScript
-
A generically typed pipe function in TypeScript
An easier alternative is to wrap the value into an array, then use .map for each function in the chain, and finally escape the value with [0]
I made a similar data structure to allow adding side effect (no return value) as part of the chained function.
https://github.com/beenotung/tslib/blob/9f9a9274c1e13be7ba83...
async-utils
-
A generically typed pipe function in TypeScript
I had built an "async" version of this - https://github.com/rocky-jaiswal/async-utils/blob/main/src/p...
Basically can solve a lot of problems by passing state to a list of "piped" functions which modify the state and eventually generate an output.
What are some alternatives?
froebel - A strictly typed utility library.
remeda - A utility library for JavaScript and TypeScript.
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
IxJS - The Interactive Extensions for JavaScript
ramdaP-ts - TypeScript ramda utility functions for dealing with Promises (and a few misc others)
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
RxJS - A reactive programming library for JavaScript