New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@koax/ware

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koax/ware

`use` syntax for koax middleware

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ware

Build status Git tag NPM version Code style

`use` syntax for koax middleware

Installation

$ npm install @koax/ware

Usage

import ware from '@koax/ware'

let app = ware()

app.use(function * (action, next) {
  if (action === 'foo') return 'bar'
  return next()
})

app('foo').then((res) => res) // => 'bar'
app('qux').then((res) => res) // => 'qux'

API

ware()

Returns: dispatch function for koax middleware stack

.use(fn)

  • fn - function to add to middleware stack

Returns: dispatch function

License

MIT

FAQs

Package last updated on 02 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts