Neutron Polarization Manipulator
Miss any of our Open RFC calls?Watch the recordings here! »

@fibjs/compose

1.0.0 • Public • Published

@fibjs/compose

NPM version build status appveyor build status Test coverage David deps Known Vulnerabilities npm download

Compose middleware.

Install

$ npm i @fibjs/compose --save

Usage

const compose = require('@fibjs/compose');
 
const middleware = [
  (ctx, next) => {
    next();
  },
  (ctx, next) => {
    next();
  },
];
 
const fn = compose(middleware);
const ctx = {
  num: 1,
};
 
fn(ctx)(ctx, (ctx) => {});
 

Questions & Suggestions

Please open an issue here.

License

MIT

Install

npm i @fibjs/compose

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar