Nostradamus Prophecy Machine
Wondering what’s next for npm?Check out our public roadmap! »

koa-better-method-override

1.0.0 • Public • Published

koa-better-method-override

Override HTTP verbs for koa.

Forked from Express method-override.

NPM version Build status Test coverage License

Install

# npm 
npm install koa-better-method-override
# yarn 
yarn add koa-better-method-override

Usage, more Express method-override

const Koa = require('koa');
// koa@2.x.x
const methodOverride = require('koa-better-method-override');
// koa@1.x.x
const methodOverride = require('koa-better-method-override/v1');
 
const app = new Koa();
 
app.use(methodOverride());
 
app.listen(3000);

License

MIT

Install

npm i koa-better-method-override

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.5 kB

Total Files

4

Last publish

Collaborators

  • avatar