0.2.1 • Published 7 years ago
koa-polyfill-service v0.2.1
Koa Polyfill service
Polyfill service middleware for koa.
Usage
npm install koa-polyfill-service --save
const polyfill = require('koa-polyfill-service')
app.use(polyfill())
API
app.use(polyfill(options))
The options
for the middleware, other than those passed directly to getPolyfillString, are:
maxAge
- the max age for the polyfill's cache control, defaulting to2 weeks
path
- route to serve lib, defaulting to/polyfill.js
features
- the same as getPolyfillString option, but defaulting to{default: {}}
.
Disclaimer: :see_no_evil: shameless copy of koa Polyfills, but using Polyfill service.