tslib
ramdaP-ts
tslib | ramdaP-ts | |
---|---|---|
2 | 1 | |
6 | 0 | |
- | - | |
8.1 | 10.0 | |
21 days ago | over 3 years ago | |
TypeScript | TypeScript | |
BSD 2-clause "Simplified" 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...
ramdaP-ts
-
A generically typed pipe function in TypeScript
Um, Ramda has pipe and types: https://www.npmjs.com/package/@types/ramda. Although I liked my own implementation of a pipeP (pipe that automatically unwraps promises) that let you specify the type of the input and output of the pipeline: https://github.com/chughes87/ramdaP-ts/blob/main/index.ts#L1....
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
async-utils - Async function utils
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
ramda - :ram: Practical functional Javascript
firehoser - A wrapper around AWS Kinesis Firehose with retry logic and custom queuing behavior. Requires node >= 6.0.0
DefinitelyTyped - The repository for high quality TypeScript type definitions.