Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.92 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.92 KB

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.