{"_id":"apricot","_rev":"20-e150145766976796507ecbefc4693904","name":"apricot","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"apricot","version":"0.0.1","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"Rob Ellis","email":"rob@silentrob.me","web":"http://silentrob.me"}],"bugs":{"mail":"rob@silentrob.me","web":"http://github.com/silentrob/Apricot/issues"},"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":">= 0.0.1"},"os":["linux","macos","win"],"cpu":["x86","ppc","x86_64"],"engines":["node"],"directories":{"lib":"lib"},"main":"./lib/apricot","_id":"apricot@0.0.1","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.1.tgz","shasum":"8be4c30bb0228ae299e6248e6a75d1be37b841dc","integrity":"sha512-G9fM3YPQJ1MQjz0tipu483ZAwxAPYsb3XRKh9tA5xcchQYN/F99Zdcf6MW41nd4v7m9bV/FFokuhkodMwB3E2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAeEazQhSGr/xA7xXfnCJ1IuczEx+4Tb19SpbjP4Y42lAiEAzPOEPEIp0y5dVc6TuyPnLHb1KnP9mIq9gqHGN+f4UIc="}]}},"0.0.2":{"name":"apricot","version":"0.0.2","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"Rob Ellis","email":"rob@silentrob.me","web":"http://silentrob.me"}],"bugs":{"mail":"rob@silentrob.me","web":"http://github.com/silentrob/Apricot/issues"},"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":">= 0.0.1"},"os":["linux","macos","win"],"cpu":["x86","ppc","x86_64"],"engines":["node"],"scripts":{"postinstall":"./scripts/fetch_htmlparser"},"directories":{"lib":"lib"},"main":"./lib/apricot","_id":"apricot@0.0.2","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.2.tgz","shasum":"636dcde62d534f46a1006f27e129cbfc17271326","integrity":"sha512-+p6qm7sLvz8ez+tEvpW6US+Hh12HLagVLrkJJRBuFObd0i3GUI6AHcxXPjZPkBnJzsgApRltdo0ain8jUZwU/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5ifk+zkwb66Pa2Dtg1VvL0J4Q2w6LtNk1Mw7zhVzLDAiBEsCTQpxJ0FN271WqTK05HSm94H6rXB02gJ5Pg34NQwQ=="}]}},"0.0.4":{"name":"apricot","version":"0.0.4","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"Rob Ellis","email":"rob@silentrob.me","web":"http://silentrob.me"}],"bugs":{"mail":"rob@silentrob.me","web":"http://github.com/silentrob/Apricot/issues"},"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":"= 0.1.2","htmlparser":"= 1.6.2"},"os":["linux","macos","win"],"cpu":["x86","ppc","x86_64"],"engines":["node"],"directories":{"lib":"lib"},"main":"./lib/apricot","_id":"apricot@0.0.4","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.4.tgz","shasum":"d5ce0cd1322f5788dcc353a3ac52a532206452d3","integrity":"sha512-NFCwBSWnJGX5TTPKpkVW3L+ZjP2D5/tFwPygLAN999hQ/N2jE/AY59AZql4aPvAhWopcdTno7YG0CFXUXbO3qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKmkyxrUASb3R+/IOfMV4Wazp4tjcrfPHFBOi4YE7zDAIhAKWUhN/cIjXkogLAmj3twec/oqrq0Af6FYTTsV/kRJ1J"}]}},"0.0.4-1-patched-by-isaacs-for-path-issue":{"name":"apricot","version":"0.0.4-1-patched-by-isaacs-for-path-issue","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"Rob Ellis","email":"rob@silentrob.me","url":"http://silentrob.me"}],"bugs":{"email":"rob@silentrob.me","url":"http://github.com/silentrob/Apricot/issues"},"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":"= 0.1.2","htmlparser":"= 1.6.2"},"os":["linux","macos","win"],"cpu":["x86","ppc","x86_64"],"engines":["node"],"directories":{"lib":"lib"},"main":"./lib/apricot","_npmJsonOpts":{"file":"/Users/isaacs/.npm/apricot/0.0.4-1-patched-by-isaacs-for-path-issue/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"apricot@0.0.4-1-patched-by-isaacs-for-path-issue","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.14","_nodeVersion":"v0.4.9-pre","_defaultsLoaded":true,"dist":{"shasum":"2913b22e2cbfe1dc48904fee772f49fe7137d2c6","tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.4-1-patched-by-isaacs-for-path-issue.tgz","integrity":"sha512-lSTVBeyyC0aT3bUSEcrfi2u+vdW4CCG7cUKzi4vh5KtG97uSNS655khUBxgnyCgdOE5Ke9IrqS2qWDO+6rSj6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC87hyM0V1fmuCIUc7GGMqcdF6zK2CP36XyDSCnH+VWNAiA1nCMtTMscjs9bUt2zvqeR+Mat/bzVneKx+UESFOYepQ=="}]},"scripts":{}},"0.0.5":{"name":"apricot","version":"0.0.5","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"Rob Ellis","email":"rob@silentrob.me","url":"http://silentrob.me"}],"bugs":{"email":"rob@silentrob.me","url":"http://github.com/silentrob/Apricot/issues"},"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":"= 0.1.2","htmlparser":"= 1.6.2"},"os":["linux","macos","win"],"cpu":["x86","ppc","x86_64"],"engines":["node"],"directories":{"lib":"lib"},"main":"./lib/apricot","_npmJsonOpts":{"file":"/Users/ironman/.npm/apricot/0.0.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"apricot@0.0.5","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.14","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"ca2a964f93f47e25ebafb6d3d5a6b95cb9a0cac6","tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.5.tgz","integrity":"sha512-vch2CQ8kaK0lEFBYJPFKHBb4IeC6oQtL3b09TyWSGxJMQ7HrSYB9Wk9nFJ03/Y0ehxlB2RXRSwpb4O8NSYJeqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgIRgaXbc56yS0uMrAEfOC+nNNYc8jN7UvWEW6LZpgAwIhAKe2wZU3A1Ri9X8vpyselawjOW+LuiG9fiFMHRWJOg38"}]},"scripts":{}},"0.0.6":{"name":"apricot","version":"0.0.6","description":"Apricot is a HTML / DOM parser, scraper for Nodejs. It is inspired by rubys hpricot and designed to fetch, iterate, and augment html or html fragments.","keywords":["dom","javascript","xui"],"maintainers":[{"name":"silentrob","email":"rob@silentrob.me"}],"licenses":[{"type":"MIT","url":"http://github.com/silentrob/Apricot/blob/master/LICENSE.txt"}],"repositories":[{"type":"git","url":"http://github.com/silentrob/Apricot.git"}],"dependencies":{"jsdom":"> 0.2","node-sizzle":"*"},"os":["linux","macos","darwin","win"],"cpu":["x86","ppc","x86_64","x64"],"engines":["node"],"directories":{"lib":"lib"},"main":"./lib/apricot","_npmUser":{"name":"silentrob","email":"rob@silentrob.me"},"_id":"apricot@0.0.6","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.10","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"21ea903f197aa7fb1ede0c8eb5301a0bb47e8ebc","tarball":"https://registry.npmjs.org/apricot/-/apricot-0.0.6.tgz","integrity":"sha512-NtYjXqXDBW18IA/ep9DvnwCZzqxhPRL4PI0WuQPEGLPA1tcWhPn3m3qd4nswvR1m4xKctQQzYPz+50R6T8QzMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/HBRvuWqKT5Kytt0frzzpukgRS+ZoZCuCG6gDJ+kz5gIgVtcv73WMgt+sLgUDS2UqzKuiuguWFpgeM4NHZa1pmj4="}]}}},"maintainers":[{"name":"silentrob","email":"rob@silentrob.me"}],"time":{"modified":"2022-06-13T03:20:02.607Z","created":"2011-06-24T16:23:22.690Z","0.0.1":"2011-06-24T16:23:22.690Z","0.0.2":"2011-06-24T16:23:22.690Z","0.0.4":"2011-06-24T16:23:22.690Z","0.0.4-1-patched-by-isaacs-for-path-issue":"2011-06-24T16:23:22.690Z","0.0.5":"2011-06-24T20:25:48.040Z","0.0.6":"2012-05-11T03:42:42.467Z"},"readme":"Apricot\n===\n\nApricot is a HTML / DOM parser, scraper for Nodejs.\nIt is inspired by [rubys hpricot](http://github.com/whymirror/hpricot) and designed to fetch, iterate, and augment html or html fragments.\n\n\nInstall\n---\n\n    npm install apricot\n\n    \nGetting Started\n---\n    Apricot.parse(\"<p id='test'>An HTML Fragment</p>\", function(err, doc) {\n      // Do something awesome here..\n    });\n    \n    // OR Open a remote website, or local file\n    \n    Apricot.open(\"http://my_awesome_website.com\", function(err, doc) {\n      // Do something awesome here..\n    });    \n\n    // Experimental Live Code, third param.\n    // Live mode will evaluate all javascript in the context of the page.\n    \n    Apricot.open( file, callback, live_mode)\n    Apricot.open(\"http://my_awesome_website.com\", function(doc) {\n      // Do something awesome here..\n    },true);\n\nPacked with Awesomeness (API)\n---\n\nParse and Open both return a Apricot Object, a HTML DOM, created by JSDOM, with all the power of the [Sizzle Selector Engine](http://wiki.github.com/jeresig/sizzle/), and [XUI Framework](http://github.com/silentrob/xui) for Augmentation.\n\n    Apricot.parse(\"<p id='test'>An HTML Fragment</p>\", function(doc) {\n      doc.find(\"selector\");     // Populates internal collection, See Sizzle selector syntax (rules)\n      doc.each(callback);       // Itterates over the collection, applying a callback to each match (element)\n      doc.remove();             // Removes all elements in the internal collection (See XUI Syntax)\n    \n      doc.inner(\"fragment\");    // See XUI Syntax\n      doc.outer(\"fragment\");    // See XUI Syntax    \n      doc.top(\"fragment\");      // See XUI Syntax\n      doc.bottom(\"fragment\");   // See XUI Syntax\n      doc.before(\"fragment\");   // See XUI Syntax\n      doc.after(\"fragment\");    // See XUI Syntax\n      doc.hasClass(\"class\");    // See XUI Syntax      \n      doc.addClass(\"class\");    // See XUI Syntax            \n      doc.removeClass(\"class\"); // See XUI Syntax            \n      \n      doc.toHTML;               // Returns the HTML\n      doc.innerHTML;            // Returns the innerHTML of the body.\n      doc.toDOM;                // Returns the DOM representation\n      \n      // Most methods are chainable, so this works\n      doc.find(\"selector\").addClass('foo').after(\", just because\");\n      \n    });\n    \n\nProblems?\n---\nApricot requires [JSDom](http://github.com/tmpvar/jsdom) and [htmlparser](http://github.com/tautologistics/node-htmlparser), these should be brought in via npm when you install apricot, but if you have problems\n\n    $ npm install jsdom\n    $ npm install htmlparser    \n\nContributors\n---\n* alexkappa \n* lancefisher\n* brog45\n* vrutberg \n* chandlerkent\n* jamesaduncan\n\nTODO \n---\n* Cleanup Code, hide privates, etc.\n* Tests\n\nLICENSE (MIT)\n---\n\n_Copyright (c) 2010 Rob Ellis_\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","readmeFilename":""}