@bmz_1/function-pipeline
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Install

npm install @bmz_1/function-pipeline

Usage

import { Runner } from '@bmz_1/function-pipeline'

type Context = {
  foo?: string
}

const context = {}
const runner = Runner<Context>()

runner.use((context, next) => {
  context.foo = 'bar'
})


await runner.handle(context)

Package Sidebar

Install

npm i @bmz_1/function-pipeline

Weekly Downloads

3

Version

0.1.2

License

ISC

Unpacked Size

15 kB

Total Files

9

Last publish

Collaborators

  • bmz_1