@arylo-scripts/function-flow
v1.1.0
Published
A small typed left-to-right function composition helper.
Downloads
347
Maintainers
Readme
function-flow
A small typed left-to-right function composition helper.
Install
npm install @arylo-scripts/function-flowUsage
import flow from '@arylo-scripts/function-flow'
const result = flow(1, (value) => String(value), (value) => value.length)flow passes the result of each function to the next function from left to
right. TypeScript overloads preserve the value type through supported chains.
Development
npm install
npm run lint
npm run build