@excelsia/pipe
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @excelsia/pipe

Weekly Downloads

3

Version

2.0.3

License

MIT

Unpacked Size

7.49 kB

Total Files

5

Last publish

Collaborators

  • excelsia