parallaxis/node_modules/jsdom/package.json

210 lines
16 KiB
JSON
Raw Permalink Normal View History

{
"name": "jsdom",
"version": "0.11.0",
"description": "A JavaScript implementation of the DOM and HTML standards",
"keywords": [
"dom",
"html",
"whatwg",
"w3c"
],
"maintainers": [
{
"name": "Elijah Insua",
"email": "tmpvar@gmail.com",
"url": "http://tmpvar.com"
},
{
"name": "Domenic Denicola",
"url": "http://domenic.me/"
}
],
"contributors": [
{
"name": "Vincent Greene",
"email": "ulteriorlife@gmail.com"
},
{
"name": "Dav Glass",
"email": "davglass@gmail.com"
},
{
"name": "Felix Gnass",
"email": "fgnass@gmail.com"
},
{
"name": "Charlie Robbins",
"email": "charlie.robbins@gmail.com"
},
{
"name": "Aria Stewart",
"email": "aredridel@nbtsc.org"
},
{
"name": "Matthew",
"email": "N.A.",
"url": "http://github.com/matthewpflueger/"
},
{
"name": "Olivier El Mekki",
"email": "unknown",
"url": "http://blog.olivier-elmekki.com/"
},
{
"name": "Shimon Dookdin",
"email": "helpmepro1@gmail.com"
},
{
"name": "Daniel Cassidy",
"email": "mail@danielcassidy.me.uk",
"url": "http://www.danielcassidy.me.uk/"
},
{
"name": "Sam Ruby",
"url": "http://intertwingly.net/blog/"
},
{
"name": "hij1nx",
"url": "http://github.com/hij1nx"
},
{
"name": "Yonathan Randolph",
"url": "http://github.com/yonran"
},
{
"name": "Martin Davis",
"url": "http://github.com/waslogic"
},
{
"name": "Andreas Lind Petersen",
"email": "andreas@one.com"
},
{
"name": "d-ash",
"url": "http://github.com/d-ash"
},
{
"name": "Robin Zhong",
"email": "fbzhong@gmail.com"
},
{
"name": "Alexander Flatter",
"email": "flatter@gmail.com"
},
{
"name": "Heng Liu",
"email": "liucougar@gmail.com"
},
{
"name": "Brian McDaniel",
"url": "http://github.com/brianmcd"
},
{
"name": "John Hurliman",
"email": "jhurliman@jhurliman.org"
},
{
"name": "Jimmy Mabey"
},
{
"name": "Gregory Tomlinson"
},
{
"name": "Jason Davies",
"url": "http://www.jasondavies.com/"
},
{
"name": "Josh Marshall",
"url": "http://www.ponderingtheobvious.com/"
},
{
"name": "Jason Priestley",
"url": "https://github.com/jhp"
},
{
"name": "Derek Lindahl",
"url": "https://github.com/dlindahl"
},
{
"name": "Chris Roebuck",
"email": "chris@quillu.com",
"url": "http://www.quillu.com"
},
{
"name": "Avi Deitcher",
"url": "https://github.com/deitch"
},
{
"name": "Nao Iizuka",
"email": "iizuka@kyu-mu.net",
"url": "https://github.com/iizukanao"
},
{
"name": "Peter Perenyi",
"url": "https://github.com/sinegar"
},
{
"name": "Tiago Rodrigues",
"email": "tmcrodrigues@gmail.com",
"url": "http://trodrigues.net"
},
{
"name": "Samori Gorse",
"email": "samorigorse@gmail.com",
"url": "http://github.com/shinuza"
},
{
"name": "John Roberts",
"email": "jroberts@logitech.com"
},
{
"name": "Chad Walker",
"email": "chad@chad-cat-lore-eddie.com",
"url": "https://github.com/chad3814"
},
{
"name": "Zach Smith",
"email": "x.coder.zach@gmail.com",
"url": "https://github.com/xcoderzach"
}
],
"bugs": {
"url": "http://github.com/tmpvar/jsdom/issues",
"email": "tmpvar@gmail.com"
},
"license": {
"type": "MIT",
"url": "http://github.com/tmpvar/jsdom/blob/master/LICENSE.txt"
},
"repository": {
"type": "git",
"url": "git://github.com/tmpvar/jsdom.git"
},
"dependencies": {
"htmlparser2": ">= 3.1.5 <4",
"nwmatcher": "~1.3.2",
"request": "2.x",
"xmlhttprequest": ">=1.5.0",
"cssom": "~0.3.0",
"cssstyle": "~0.2.9",
"contextify": "~0.1.5"
},
"devDependencies": {
"nodeunit": "~0.8.0",
"optimist": "*",
"urlmaster": ">=0.2.15"
},
"scripts": {
"test": "node ./test/runner"
},
"main": "./lib/jsdom",
"readme": "# jsdom\n\nA JavaScript implementation of the WHATWG DOM and HTML standards.\n\n## Install\n\n```bash\n$ npm install jsdom\n```\n\nIf this gives you trouble with errors about installing Contextify, especially on Windows, see [below](#contextify).\n\n## Human contact\n\nsee: [mailing list](http://groups.google.com/group/jsdom)\n\n## Easymode\n\nBootstrapping a DOM is generally a difficult process involving many error prone steps. We didn't want jsdom to fall into the same trap and that is why a new method, `jsdom.env()`, has been added in jsdom 0.2.0 which should make everyone's lives easier.\n\nYou can use it with a URL\n\n```js\n// Count all of the links from the Node.js build page\nvar jsdom = require(\"jsdom\");\n\njsdom.env(\n \"http://nodejs.org/dist/\",\n [\"http://code.jquery.com/jquery.js\"],\n function (errors, window) {\n console.log(\"there have been\", window.$(\"a\").length, \"nodejs releases!\");\n }\n);\n```\n\nor with raw HTML\n\n```js\n// Run some jQuery on a html fragment\nvar jsdom = require(\"jsdom\");\n\njsdom.env(\n '<p><a class=\"the-link\" href=\"https://github.com/tmpvar/jsdom\">jsdom\\'s Homepage</a></p>',\n [\"http://code.jquery.com/jquery.js\"],\n function (errors, window) {\n console.log(\"contents of a.the-link:\", window.$(\"a.the-link\").text());\n }\n);\n```\n\nor with a configuration object\n\n```js\n// Print all of the news items on hackernews\nvar jsdom = require(\"jsdom\");\n\njsdom.env({\n url: \"http://news.ycombinator.com/\",\n scripts: [\"http://code.jquery.com/jquery.js\"],\n done: function (errors, window) {\n var $ = window.$;\n console.log(\"HN Links\");\n $(\"td.title:not(:last) a\").each(function() {\n console.log(\" -\", $(this).text());\n });\n }\n});\n```\n\nor with raw JavaScript source\n\n```js\n// Print all of the news items on hackernews\nvar jsdom = require(\"jsdom\");\nvar fs = require(\"fs\");\nvar jquery = fs.readFileSync(\"./jquery.js\", \"utf-8\");\n\njsdom.env({\n url: \"http://news.ycombinator.com/\",\n src: [jquery],\n done: function (errors, window) {\n var $ = window.$;\n console.log(\"HN Links\");\n $(\"td.title:not(:last) a\").each(function () {\n console.log(\" -\", $(this).text());\n });\n }\n});\n```\n\n### How it works\n`jsdom.env` is built for ease of use, which is rare in the world of the DOM! Since the web has some absolutely horrible JavaScript on it, as of jsdom 0.2.0 `jsdom.env` will not process external resources (scripts, images, etc). If you want to process the JavaScript use one of the methods below (`jsdom.jsdom` or `jsdom.jQueryify`)\n\n```js\njsdom.env(string, [scripts], [config], callback);\n```\n\nThe arguments are:\n\n- `string`: may be a URL, file name, or HTML fragment\n- `scripts`: a string or array of strings, containing file names or URLs that will be inserted as `<script>` tags\n- `config`: see below\n- `callback`: takes two arguments\n - `error`: either an `Error` object if something failed initializing the window, or an array of error messages from the DOM if there were script errors\n - `window`: a brand new `window`\n\n_Example:_\n\n```js\njsdom.env(html, function (errors, window) {\n // free memory associated with the window\n window.close();\n});\n```\n\nIf you would like to specify a configuration object only:\n\n```js\njsdom.env(config);\n```\n\n- `config.html`: a HTML fragment\n- `config.file`: a file which jsdom will load HTML from; the resulting window's `location.href` will be a `file://` URL.\n- `config.url`: sets the resulting window's `location.href`; if `config.html` and `config.file` are not provided, jsdom will load HTML from this URL.\n- `config.scripts`: see `scripts` above.\n- `config.src`: an array of JavaScript strings that will be evaluated against the resulting document. Similar to `scripts`, but it accepts JavaScript instead of paths/URLs.\n- `config.jar`: a custom cookie jar, if desired; see [mikeal/request](https://github.com/mikeal/request) documentation.\n- `config.done`: see `callback` above.\n- `config.document`:\n - `refer
"readmeFilename": "README.md",
"_id": "jsdom@0.11.0",
"dist": {
"shasum": "03584b3237d20ae35eafc915aa73a709af28e304"
},
"_from": "jsdom@",
"_resolved": "https://registry.npmjs.org/jsdom/-/jsdom-0.11.0.tgz"
}