Socket
Socket
Sign inDemoInstall

phantom

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantom - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

2

dist/index.js

@@ -18,3 +18,3 @@ 'use strict';

*/
function create(args, config) {
function create(args = ['--local-url-access=false'], config) {
return new Promise(resolve => resolve(new _phantom2.default(args, config)));

@@ -21,0 +21,0 @@ }

@@ -6,3 +6,3 @@ {

"homepage": "https://github.com/amir20/phantomjs-node",
"version": "6.2.0",
"version": "6.3.0",
"repository": {

@@ -48,8 +48,8 @@ "type": "git",

"eslint-plugin-import": "^2.16.0",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.3",
"jest": "^23.6.0",
"flow-bin": "^0.102.0",
"flow-copy-source": "^2.0.7",
"jest": "^24.8.0",
"jest-cli": "^23.6.0",
"npm-watch": "^0.6.0",
"prettier-eslint": "^8.8.2",
"prettier-eslint": "^9.0.0",
"rimraf": "^2.6.3"

@@ -56,0 +56,0 @@ },

@@ -8,4 +8,2 @@ phantom - Fast NodeJS API for PhantomJS

[![Linux Build][travis-image]][travis-url]
[![Code Coverage][codecov-image]][codecov-url]
[![Dependencies][dependencies-image]][dependencies-url]
[![Node Version][node-image]][node-url]

@@ -38,2 +36,14 @@

## Use it with npx
You can quickly test any website with phantomjs-node without needing to install the package.
```
$ npx phantom@latest https://stackoverflow.com/
```
The above command is very useful to test if your website works on older browsers. I frequently use it to ensure [polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills) have been installed correctly.
## Deprecation warnings of PhantomJs
In March 2018, the owner of PhantomJS [announced](https://phantomjs.org/) suspension of development. There hasn't been any updates since. Since phantomjs-node is only a wrapper around phantomjs, then you should use it at your own risk because the underlying dependency is no longer supported. I plan to maintain this project until usage has dropped significantly.
## Installation

@@ -97,13 +107,13 @@

[npm-image]: https://img.shields.io/npm/v/phantom.svg?style=flat-square
[npm-image]: https://img.shields.io/npm/v/phantom.svg?style=for-the-badge
[npm-url]: https://npmjs.org/package/phantom
[downloads-image]: https://img.shields.io/npm/dm/phantom.svg?style=flat-square
[downloads-image]: https://img.shields.io/npm/dm/phantom.svg?style=for-the-badge
[downloads-url]: https://npmjs.org/package/phantom
[travis-image]: https://img.shields.io/travis/amir20/phantomjs-node.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/amir20/phantomjs-node.svg?style=for-the-badge
[travis-url]: https://travis-ci.org/amir20/phantomjs-node
[dependencies-image]: https://dependencyci.com/github/amir20/phantomjs-node/badge?style=flat-square
[dependencies-image]: https://dependencyci.com/github/amir20/phantomjs-node/badge?style=for-the-badge
[dependencies-url]: https://dependencyci.com/github/amir20/phantomjs-node
[node-image]: https://img.shields.io/node/v/phantom.svg?style=flat-square
[node-image]: https://img.shields.io/node/v/phantom.svg?style=for-the-badge
[node-url]: https://nodejs.org/en/download/
[codecov-image]: https://codecov.io/gh/amir20/phantomjs-node/branch/master/graph/badge.svg?style=flat-square
[codecov-image]: https://codecov.io/gh/amir20/phantomjs-node/branch/master/graph/badge.svg?style=for-the-badge
[codecov-url]: https://codecov.io/gh/amir20/phantomjs-node

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc