This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
63 lines (63 loc) · 5.37 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"name": "phantomjs",
"version": "1.9.7-9",
"keywords": [
"phantomjs",
"headless",
"webkit"
],
"description": "Headless WebKit with JS API",
"homepage": "https://github.com/Obvious/phantomjs",
"repository": {
"type": "git",
"url": "git://github.com/Obvious/phantomjs.git"
},
"licenses": [
{
"type": "Apache-2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
],
"author": {
"name": "Dan Pupius",
"email": "dan@obvious.com",
"url": "http://pupius.co.uk"
},
"maintainers": [
{
"name": "Dan Pupius",
"email": "dan@obvious.com",
"url": "http://pupius.co.uk/"
}
],
"main": "lib/phantomjs",
"bin": {
"phantomjs": "./bin/phantomjs"
},
"scripts": {
"install": "node install.js",
"test": "nodeunit --reporter=minimal test/tests.js"
},
"dependencies": {
"adm-zip": "0.2.1",
"kew": "~0.1.7",
"ncp": "0.4.2",
"npmconf": "0.0.24",
"mkdirp": "0.3.5",
"request": "2.36.0",
"rimraf": "~2.2.2",
"which": "~1.0.5"
},
"devDependencies": {
"nodeunit": "~0.7.4"
},
"readme": "phantomjs\n=========\n\nAn NPM wrapper for [PhantomJS](http://phantomjs.org/), headless webkit with JS API.\n\nBuilding and Installing\n-----------------------\n\n```shell\nnpm install phantomjs\n```\n\nOr grab the source and\n\n```shell\nnode ./install.js\n```\n\nTo use a mirror of the phantomjs binaries, set `$PHANTOMJS_CDNURL`,\ndefault is `http://cdn.bitbucket.org/ariya/phantomjs/downloads`\n\n```shell\nPHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install phantomjs\n```\n\nWhat this is really doing is just grabbing a particular \"blessed\" (by\nthis module) version of Phantom. As new versions of Phantom are released\nand vetted, this module will be updated accordingly.\n\nThe package has been set up to fetch and run Phantom for MacOS (darwin),\nLinux based platforms (as identified by nodejs), and -- as of version 0.2.0 --\nWindows (thanks to [Domenic Denicola](https://github.com/domenic)). If you\nspot any platform weirdnesses, let us know or send a patch.\n\nRunning\n-------\n\n```shell\nbin/phantomjs [phantom arguments]\n```\n\nAnd npm will install a link to the binary in `node_modules/.bin` as\nit is wont to do.\n\nRunning via node\n----------------\n\nThe package exports a `path` string that contains the path to the\nphantomjs binary/executable.\n\nBelow is an example of using this package via node.\n\n```javascript\nvar path = require('path')\nvar childProcess = require('child_process')\nvar phantomjs = require('phantomjs')\nvar binPath = phantomjs.path\n\nvar childArgs = [\n path.join(__dirname, 'phantomjs-script.js'),\n 'some other argument (passed to phantomjs script)'\n]\n\nchildProcess.execFile(binPath, childArgs, function(err, stdout, stderr) {\n // handle results\n})\n\n```\n\nVersioning\n----------\n\nThe NPM package version tracks the version of PhantomJS that will be installed,\nwith an additional build number that is used for revisions to the installer.\n\nAs such `1.8.0-1` and `1.8.0-2` will both install PhantomJs 1.8 but the latter\nhas newer changes to the installer.\n\nA Note on PhantomJS\n-------------------\n\nPhantomJS is not a library for NodeJS. It's a separate environment and code\nwritten for node is unlikely to be compatible. In particular PhantomJS does\nnot expose a Common JS package loader.\n\nThis is an _NPM wrapper_ and can be used to conveniently make Phantom available\nIt is not a Node JS wrapper.\n\nI have had reasonable experiences writing standalone Phantom scripts which I\nthen drive from within a node program by spawning phantom in a child process.\n\nRead the PhantomJS FAQ for more details: http://phantomjs.org/faq.html\n\n### Linux Note\n\nAn extra note on Linux usage, from the PhantomJS download page:\n\n > This package is built on CentOS 5.8. It should run successfully on Lucid or\n > more modern systems (including other distributions). There is no requirement\n > to install Qt, WebKit, or any other libraries. It is however expected that\n > some base libraries necessary for rendering (FreeType, Fontconfig) and the\n > basic font files are available in the system.\n\nContributing\n------------\n\nQuestions, comments, bug reports, and pull requests are all welcome. Submit them at\n[the project on GitHub](https://github.com/Obvious/phantomjs/). If you haven't contributed to an\n[Obvious](http://github.com/Obvious/) project before please head over to the\n[Open Source Project](https://github.com/Obvious/open-source#note-to-external-contributors) and fill\nout an OCLA (it should be pretty painless).\n\nBug reports that include steps-to-reproduce (including code) are the\nbest. Even better, make them in the form of pull requests.\n\nAuthor\n------\n\n[Dan Pupius](https://github.com/dpup)\n([personal website](http://pupius.co.uk)), supported by\n[The Obvious Corporation](http://obvious.com/).\n\nLicense\n-------\n\nCopyright 2012 [The Obvious Corporation](http://obvious.com/).\n\nLicensed under the Apache License, Version 2.0.\nSee the top-level file `LICENSE.txt` and\n(http://www.apache.org/licenses/LICENSE-2.0).\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/Obvious/phantomjs/issues"
},
"_id": "phantomjs@1.9.7-9",
"_shasum": "a25237d0d8b61404aacc69179fdbe0d4b2264985",
"_from": "phantomjs@~1.9.0-1",
"_resolved": "https://registry.npmjs.org/phantomjs/-/phantomjs-1.9.7-9.tgz"
}