JSPM

phantomjs-polyfills

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q48300F
  • License MIT

PhantomJS polyfills for Function.prototype.bind and Element.prototype.remove

Package Exports

  • phantomjs-polyfills

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phantomjs-polyfills) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PhantomJS polyfills (For phantomJS 1.x)

Build Status PhantomJS is widely used for testing web-based applications. This lib contains polyfills for the following functions that PhantomJS@1.x does not support natively:

  • Function.prototype.bind
  • Element.prototype.remove

Note: PhantomJS2.x has supported those method natively. And the PhantomJS team don't recommend PhantomJS 1.x anymore

Get started

Installation

npm install -D phantomjs-polyfills

Use with Karma

Add the polyfills in your karma.config.js

...
files: [
    {pattern: './node_modules/phantomjs-polyfill/polyfills/*.js', included: true},
    ...
]