polyfills-middleware

polyfill middleware for express, etc.

Usage no npm install needed!

<script type="module">
  import polyfillsMiddleware from 'https://cdn.skypack.dev/polyfills-middleware';
</script>

README

polyfills-middleware

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Polyfills middleware for Express, Connect, etc. Uses the req, res, next signature. Simply add a <script src="/polyfill.js"></script> to your HTML pages and you've got all the polyfills you could ever need!

API

app.use(require('polyfills-middleware')(options))

Options are:

  • maxAge - defaults to 14 days

The other options are include and exclude.