@exelcia/pipe
Pipe as in the way it should be. This is based on fp-ts. It also includes a custom Error object that traces the information of where it happened to facilitate debugging.
How to use
import { pipe } from '@excelsia/pipe';
const len = (s: string): number => s.length
const double = (n: number): number => n * 2
// without pipe
double(len('aaa')) === 6 // true
// with pipe
pipe('aaa', len, double) === 6 // true
About the Author
Hi, I'm bop, a software engineer who loves to learn and create new stuff. Connect with me to stay updated on what I'm doing and my projects.
🌐 Website: bop.systems 📧 Email: brunooliveira37@hotmail.com
📱 Social Media:
You can also buy me a coffee to support me, if you like what I do