{"_id":"html-to-json","_rev":"34-20d8aab7599b626fa8c786c3cc0e5ead","name":"html-to-json","description":"Parses HTML strings into objects using flexible, composable filters.","dist-tags":{"latest":"0.6.0","next":"1.0.0-alpha.1"},"versions":{"0.1.0":{"name":"html-to-json","version":"0.1.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"cheerio":"^0.18.0","lodash":"^2.4.1","q":"^1.1.1","request":"^2.49.0"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","grunt-jsbeautifier":"^0.2.7","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"45ec9020e11db2cd5bf5ad6418fb17756d8f3163","_id":"html-to-json@0.1.0","_shasum":"60fe5a9a8e81436abce0bc2da8a0524c5299bb65","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"60fe5a9a8e81436abce0bc2da8a0524c5299bb65","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.1.0.tgz","integrity":"sha512-iEwRar81QmECIz4rw7H5D5VeVZt4J6BElK3uSjoFMb7IRWiWeaM5s9hBvn8E86rSAfzx7zoJeylZfF0CORMNqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQtPaHds4483D4nfXsF954V/obkDFC8favJYK5TZjPEQIgBiPErKIutaVZ+q0JUgEOzLce0JKs+X9xMzw1S81EWRY="}]},"directories":{}},"0.1.1":{"name":"html-to-json","version":"0.1.1","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"cheerio":"^0.18.0","lodash":"^2.4.1","q":"^1.1.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","grunt-jsbeautifier":"^0.2.7","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"f80d2a41f71d33c58b427fcb487ce1e04ad14e68","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.1.1","_shasum":"4a3596149037a87f4790d43eb642debf7603cf14","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"4a3596149037a87f4790d43eb642debf7603cf14","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.1.1.tgz","integrity":"sha512-vURBCaf8v52/Ja/QV2snSOSloYuH0utYG9iaVa9X1Wibr/XV9+fWmUNpU8S6fT2BqO2PA4Rcs2sJYnGGMGV1qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9jsDXi0eyv0So4/N6+ZCNnCV8wjCYxBCt8qMc0M1TcAiEA3H1Qyu+pgMG1tSKDlzGVRR+PjAcf50QrEG9eIE425FI="}]},"directories":{}},"0.1.2":{"name":"html-to-json","version":"0.1.2","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","grunt-jsbeautifier":"^0.2.7","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"cb9ea39f2fda138c36e1566cb5ab54ad8f779694","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.1.2","_shasum":"63db9f584f6f2a57e61b0395d8d087ca353ad26e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"63db9f584f6f2a57e61b0395d8d087ca353ad26e","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.1.2.tgz","integrity":"sha512-itVB2uTofK6pJAGZARZn4FLhcgzcb8XuNcLpuyWCDzX24O87jNE+sVpAH609/xhU+Epd7LUCqKigRVSFpz6row==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrBbnBkVdnIAPsFyNSMuGfmm42vjGDR25eeuUyvw6gcwIgFC/kFUDvhbC9HQBUu3LIEwo8NjLTWCDijZrRlL3d8is="}]},"directories":{}},"0.2.0":{"name":"html-to-json","version":"0.2.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"6cd0d79ce4b829053073de8d87e2f9c038c6cd92","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.2.0","_shasum":"8accceeae1715eaf60681050398362b782a2c394","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"8accceeae1715eaf60681050398362b782a2c394","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.2.0.tgz","integrity":"sha512-qM+/M9UfB/Tc9f4Uy4h6uLZaSBYSZ5xyfFUVee2g43pnxO5SOpANsXZ4b8+vPU1ErH6UWjhAQ/Ixs4526u0R6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTNnyHoCMT2tQivO5nmrmm4U3cGM93HbHYoyin5zRf3QIhAI8cie+AnisbPZIWFJCoSoTmpEEaCpuwb0p8hMF8GJkN"}]},"directories":{}},"0.2.1":{"name":"html-to-json","version":"0.2.1","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"5deed2443d4aeabad30ebe0cab60ae194f974405","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.2.1","_shasum":"8ff85fda962c981d85f273207cd25875402537bf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"8ff85fda962c981d85f273207cd25875402537bf","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.2.1.tgz","integrity":"sha512-jnBqprQR4EIn2YWqJD9xIvvjKsmovMzU+yPYyeHnOegMR+AaEjlXvRXXNrzX0nuKqDrLgwVepoB0PXXBH+gONQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4WIDA+jkRLZfi1QLdyN5mtRNl3sBktd6oQ8Pngr4h2AIhAIalBLV52Bdx36szOTPg3fXumX0mtkhvOw5waXvzkIor"}]},"directories":{}},"0.2.2":{"name":"html-to-json","version":"0.2.2","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"28f7e1c509de3e257662293df0a895bd7cf2a7ae","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.2.2","_shasum":"6255df8715ad29d42114b592f422988c259ca40d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"6255df8715ad29d42114b592f422988c259ca40d","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.2.2.tgz","integrity":"sha512-RHc29As9qdJmsYJwVw+c6sHme+8sK4SutWPZv0lL4qmIZwm4W77oimTRSyU3+XBreQ9mhvs7YZT0NfS0X17OdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEmvQK24IzpvYcE1vImcBUI0Bb0PZ7z1tQCbx2u/Sk+AiEAjyjCim8S5PAIDkhlwY2lnAbvbOCf4kXqkKSm4Rju3MA="}]},"directories":{}},"0.3.0":{"name":"html-to-json","version":"0.3.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"6986e1f763fd498ab4d994931d073ab44b496037","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.3.0","_shasum":"b8c16a84e65fa03c69534b8bde1f52d3040f94f2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"b8c16a84e65fa03c69534b8bde1f52d3040f94f2","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.3.0.tgz","integrity":"sha512-XVVcZT+Pozhy5/06Cg2A5hl+KLXkmn/hFUDk2JHO221kg8F1Z8yYfy/hN8WMMR7adCqwh+ImfSsSg4c6QLXN9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuuSLD/0JBeef2qSBQnSNxS/yuXAbczzxBLr2TjJeqgAiBgBv4nGKM/2ecCA0ofP7KgOwwYI2XS0OsT/nrz1iCJ1w=="}]},"directories":{}},"0.4.0":{"name":"html-to-json","version":"0.4.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"0a5a9b3d476b113ef6a690e71e50add9f8f4a596","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.4.0","_shasum":"909a9d1ac5670c0f36a2f6a6b8c8903f39a0c87e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"909a9d1ac5670c0f36a2f6a6b8c8903f39a0c87e","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.4.0.tgz","integrity":"sha512-EBxgdoEMMIlx/PlqWOY1ZMHpaDfMAr1k4dDHM4JyjwDUsmRb3CoRFg+gRJCacE4kbWnutNP8T9kqNe8uCqIl/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtg1U2OilYhv5yGRQ+B+Hc2Kw7GvrdXx32UdsC3LEPXAiBl6SC5i5YXFnwUZEMPPnobbbQ+6TW7X++GwAKXRVuvRA=="}]},"directories":{}},"0.4.1":{"name":"html-to-json","version":"0.4.1","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"6d5a494977ce24b59eee0a16816d786f869eeda8","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.4.1","_shasum":"8c64124bf937c231a09025af512e9841709a19c1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"8c64124bf937c231a09025af512e9841709a19c1","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.4.1.tgz","integrity":"sha512-rlBeYtqDH7UjCHhRY7WNKxt6JUnrETDhBbX2d0pWVvhaKz+g+/Rdnz9nCG4qCpwr5lLEK8zGu1UER2PGUW5DqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9hUduN6dGlnBmOY4H7wEJ2/Tx+ayNEbKf4dYc4timBgIhAMwVFYrc68fedajGRgQbkK7gJ6Mw1nBFfcC9q4ePK6OD"}]},"directories":{}},"0.5.0":{"name":"html-to-json","version":"0.5.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.25","cheerio":"^0.18.0","lodash":"^2.4.1","request":"^2.49.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"2fdfc694266d097079346f23e0d8bf4c9d3c94a7","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.5.0","_shasum":"c677c9723f676509e1ceb9bb77ccf9a6ae134418","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"c677c9723f676509e1ceb9bb77ccf9a6ae134418","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.5.0.tgz","integrity":"sha512-CUmkLssLcTpoSW83kJ6LMWOcX48/FNIs5FPNiIUzFnkupfGais+eIoUyYOxcaCCvcSM+ViCKmWN8F9CUwaSFyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4hSZdst3Bbz4Hv+g8XbtjC4QM+7ZH+jodF2B+5B3tsAiEAvI3wGSkioQM8hmxvky3JsWF9ITKH3a0HOAq4cjNuK+E="}]},"directories":{}},"0.5.1":{"name":"html-to-json","version":"0.5.1","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.34","cheerio":"^0.18.0","lodash":"^2.4.2","request":"^2.60.0"},"repository":{"type":"git","url":"https://github.com/prolificinteractive/node-html-to-json"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"ca012f7817c407c896e0b2585b4c0be18d1e974c","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json","_id":"html-to-json@0.5.1","_shasum":"98998a6834c73ea6e1807dda1fefd44f80c2af66","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"98998a6834c73ea6e1807dda1fefd44f80c2af66","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.5.1.tgz","integrity":"sha512-HMqu5jSPHuNOGImnUJ3VlWLz39xLqnBNzcjQ6vkV1iqqKVQELQ5YDHzOn0PFShOWSjAg5A6sarn2k65v2j7Mlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfFgXVMDmG3wjWlYAtWnGucKD7bB1BjVpcFSww72COLAiEA30MH24ZGeOAOuh4jkIueJM85KCoN2MjQPSYoXnon8MM="}]},"directories":{}},"0.5.2":{"name":"html-to-json","version":"0.5.2","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^2.9.34","cheerio":"^0.18.0","lodash":"^2.4.2","request":"^2.60.0"},"repository":{"type":"git","url":"git+https://github.com/prolificinteractive/node-html-to-json.git"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.0.1","should":"^4.3.0"},"gitHead":"d24c8fa3944c61f2b37c1c4984f2db7d99385f28","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json#readme","_id":"html-to-json@0.5.2","_shasum":"9a4e4538051f782afede48450e8eeb7c01374cfd","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"9a4e4538051f782afede48450e8eeb7c01374cfd","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.5.2.tgz","integrity":"sha512-y7F2xIgEE5A3h7/KvHLU8qpukDTiQEOwqLTo19gZ/yevxyhk8CDpQLPxqRzXRaRxyD/vWz/6o/VX8FdyI6XrJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXdHyFC8B0kYKAH+aPgW1TVY0L3YJL/wtTnhfg56qhNAiA9i8KYBihOG9Z7hpVp3hn9+srwXFGb3+Iw/IBtDfb9dA=="}]},"directories":{}},"0.5.3":{"name":"html-to-json","version":"0.5.3","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"grunt test"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^3.0.6","cheerio":"^0.19.0","lodash":"^3.10.1","request":"^2.67.0"},"repository":{"type":"git","url":"git+https://github.com/prolificinteractive/node-html-to-json.git"},"devDependencies":{"express":"^4.10.4","grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.2","grunt-jsbeautifier":"^0.2.10","grunt-mocha-test":"^0.12.4","mocha":"^2.3.4","should":"^7.1.1"},"gitHead":"d17358f291a6733a25193e0f5340b00181637f1f","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json#readme","_id":"html-to-json@0.5.3","_shasum":"591eaf3cb4679b3f611ba7b6de75e5671f902cda","_from":".","_npmVersion":"3.5.1","_nodeVersion":"4.2.2","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"591eaf3cb4679b3f611ba7b6de75e5671f902cda","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.5.3.tgz","integrity":"sha512-grURJoZ6WiiVFU990aUHiwfmnlc2FeqDp7DhrR8Pfw8sqDwXQWPOPiQ2K75ATaIOnWHHnFCVmuoCrz/E+7T7Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHult7pJzZYAvHhlW1tU+oMH/t1yWYNVr2C/JyjtRGrAiB6NVpV2TG8cx/ftD3t4by4mHOD2R/OtfAdz4Cdy/WlBQ=="}]},"directories":{}},"0.6.0":{"name":"html-to-json","version":"0.6.0","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"jshint ./lib/* ./test/*; node_modules/.bin/mocha"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"^3.0.6","cheerio":"^0.19.0","lodash":"^3.10.1","request":"^2.67.0"},"repository":{"type":"git","url":"git+https://github.com/prolificinteractive/node-html-to-json.git"},"devDependencies":{"express":"^4.10.4","mocha":"^2.3.4","should":"^7.1.1"},"gitHead":"3fc462625525b6d67b2f4c5cc2e04b564d463fec","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json#readme","_id":"html-to-json@0.6.0","_shasum":"718db295f3de0a9262d4528fac1a85837e6e06b1","_from":".","_npmVersion":"3.5.1","_nodeVersion":"4.2.2","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"shasum":"718db295f3de0a9262d4528fac1a85837e6e06b1","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-0.6.0.tgz","integrity":"sha512-/UJDd+Rm4g+ejwS9/11AjESlTjnIpkY2KJB/7B1s99zNcBT7eqgQd1rdQ44wjZaJQ87qf72caMrtylwiwKGfmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmHEExT4oOqInwrMh2quZ3oMBSPYXdhimeCDCtgqjaKAIhAM4/gp3TfW7gCIE5Y0kzJZOXG1fmU5Qevk7H4pusdsLF"}]},"directories":{}},"1.0.0-alpha.1":{"name":"html-to-json","version":"1.0.0-alpha.1","description":"Parses HTML strings into objects using flexible, composable filters.","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"Eric Weber"},"license":"MIT","dependencies":{"bluebird":"3.5.0","cheerio":"^0.19.0"},"repository":{"type":"git","url":"git+https://github.com/prolificinteractive/node-html-to-json.git"},"devDependencies":{"mocha":"2.5.3","should":"^7.1.1"},"gitHead":"5d46b4c3ae9ccfb71b9c9e6ed42b7b7f2efaafe3","bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"homepage":"https://github.com/prolificinteractive/node-html-to-json#readme","_id":"html-to-json@1.0.0-alpha.1","_npmVersion":"5.0.4","_nodeVersion":"8.1.2","_npmUser":{"name":"prolificeric","email":"eric@prolificinteractive.com"},"maintainers":[{"name":"prolificeric","email":"eric@prolificinteractive.com"}],"dist":{"integrity":"sha512-e0ORvJx/1PiVHZbjhFkRLXaDd/vIS7hDHD6s3FYVxJpFCAgwhN7UaGeEY7fyfRkgIOjN8wTxlP0Bxs+w2W9lng==","shasum":"8e2d2216c8ee4d1115e7e3ba9795999238ef1e52","tarball":"https://registry.npmjs.org/html-to-json/-/html-to-json-1.0.0-alpha.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgZ7KMs6pLhBNe2JNIEMzQ/HocHRhVOgIpCnJsVHOHWAiAISfMeQVmlJ481uEUnKtjrLdbc+Sw9oEPlzpL4NG7S2w=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-to-json-1.0.0-alpha.1.tgz_1498661085073_0.5244812280870974"},"directories":{}}},"readme":"# htmlToJson\n\nParses HTML strings into objects using flexible, composable filters.\n\n## Installation\n\n`npm install html-to-json`\n\n## htmlToJson.parse(html, filter, [callback]) -> promise\n\nThe `parse()` method takes a string of HTML, and a filter, and responds with the filtered data. This supports both callbacks and promises.\n\n```javascript\nvar promise = htmlToJson.parse('<div>content</div>', {\n  'text': function ($doc) {\n    return $doc.find('div').text();\n  }\n}, function (err, result) {\n  console.log(result);\n});\n\npromise.done(function (result) {\n  //Works as well\n});\n```\n\n## htmlToJson.request(requestOptions, filter, [callback]) -> promise\n\nThe `request()` method takes options for a call to the [request](https://github.com/request/request) library and a filter, then returns the filtered response body.\n\n```javascript\nvar promise = htmlToJson.request('http://prolificinteractive.com/team', {\n  'images': ['img', function ($img) {\n    return $img.attr('src');\n  }]\n}, function (err, result) {\n  console.log(result);\n});\n```\n\n## htmlToJson.batch(html, dictionary, [callback]) -> promise\n\nPerforms many parsing operations against one HTML string. This transforms the HTML into a DOM only once instead of for each filter in the dictionary, which can quickly get expensive in terms of processing. This also allows you to break your filters up into more granular components and mix and match them as you please.\n\nThe values in the dictionary can be `htmlToJson.Parser` objects, generated methods from `htmlToJson.createMethod`, or naked filters that you might normally pass into `htmlToJson.parse`. For example:\n\n```javascript\nreturn getProlificHomepage().then(function (html) {\n  return htmlToJson.batch(html, {\n    sections: htmlToJson.createParser(['#primary-nav a', {\n      'name': function ($section) {\n        return $section.text();\n      },\n      'link': function ($section) {\n        return $section.attr('href');\n      }\n    }]),\n    offices: htmlToJson.createMethod(['.office', {\n      'location': function ($office) {\n        return $office.find('.location').text();\n      },\n      'phone': function ($office) {\n        return $office.find('.phone').text();\n      }\n    }]),\n    socialInfo: ['#footer .social-link', {\n      'name': function ($link) {\n        return $link.text();\n      },\n      'link': function ($link) {\n        return $link.attr('href');\n      }\n    }]\n  });\n});\n```\n\n## htmlToJson.createMethod(filter) -> function (html, [callback])\n\nGenerates a method that wraps the passed `filter` argument. The generated method takes an HTML string and processes it against that `filter`.\n\n```javascript\nvar parseFoo = htmlToJson.createMethod({\n  'foo': function ($doc) {\n    return $doc.find('#foo').bar();\n  }\n});\n```\n\n## htmlToJson.createParser(filter), new htmlToJson.Parser(filter)\n\nFor the sake of reusability, creates an object with `.parse` and `.request` helper methods, which use the passed filter. For example:\n\n```javascript\nvar linkParser = htmlToJson.createParser(['a[href]', {\n  'text': function ($a) {\n    return $a.text();\n  },\n  'href': function ($a) {\n    return $a.attr('href');\n  }\n}]);\n\nlinkParser.request('http://prolificinteractive.com').done(function (links) {\n  //Do stuff with links\n});\n```\n\nis equivalent to:\n\n```javascript\nlinkParser.request('http://prolificinteractive.com', ['a[href]', {\n  'text': function ($a) {\n    return $a.text();\n  },\n  'href': function ($a) {\n    return $a.attr('href');\n  }\n}]).done(function (links) {\n  //Do stuff with links\n});\n```\n\nThe former allows you to easily reuse the filter (and make it testable), while that latter is a one-off.\n\n### parser.parse(html, [callback])\n\nParses the passed html argument against the parser's filter.\n\n### parser.method(html, [callback])\n\nReturns a method that wraps `parser.parse()`\n\n### parser.request(requestOptions, [callback])\n\nMakes a request with the request options, then runs the response body through the parser's filter.\n\n## Filter Types\n\n### Functions\n\nThe return values of functions are mapped against their corresponding keys. Function filters are passed [cheerio](https://github.com/cheeriojs/cheerio) objects, which allows you to play with a jQuery-like interface.\n\n```javascript\nhtmlToJson.parse('<div id=\"foo\">foo</div>', {\n  'foo1': function ($doc, $) {\n    return $doc.find('#foo').text(); //foo\n  }\n}, callback);\n```\n\n### Arrays\n\nArrays of data can be parsed out by either using the .map() method within a filter function or using the shorthand [selector, filter] syntax:\n\n#### .map(selector, filter)\n\nA filter is applied incrementally against each matched element, and the results are returned within an array.\n\n```javascript\nvar html = '<div id=\"items\"><div class=\"item\">1</div><div class=\"item\">2</div></div>';\n\nhtmlToJson.parse(html, function () {\n  return this.map('.item', function ($item) {\n    return $item.text();\n  });\n}).done(function (items) {\n  // Items should be: ['1','2']\n}, function (err) {\n  // Handle error\n});\n```\n\n#### [selector, filter, after]\n\nThis is essentially a short-hand alias for `.map()`, making the filter look more like its output:\n\n```javascript\nvar html = '<div id=\"items\"><div class=\"item\">1</div><div class=\"item\">2</div></div>';\n\nhtmlToJson\n  .parse(html, ['.item', function ($item) {\n    return $item.text();\n  }])\n  .done(function (items) {\n    // Items should be: ['1','2']\n  }, function (err) {\n    // Handle error\n  });\n```\n\nAs an added convenience you can pass in a 3rd argument into the array filter, which allows you to manipulate the results. You can return a promise if you wish to do an asynchronous operation.\n\n```javascript\nvar html = '<div id=\"items\"><div class=\"item\">1</div><div class=\"item\">2</div></div>';\n\nhtmlToJson\n  .parse(html, ['.item', function ($item) {\n    return +$item.text();\n  }, function (items) {\n    return _.map(items, function (item) {\n      return item * 3;\n    });\n  }])\n  .done(function (items) {\n    // Items should be: [3,6]\n  }, function (err) {\n    // Handle error\n  });\n```\n\n### Asynchronous filters\n\nFilter functions may also return promises, which get resolved asynchronously.\n\n```javascript\nfunction getProductDetails (id, callback) {\n  return htmlToJson.request({\n    uri: 'http://store.prolificinteractive.com/products/' + id\n  }, {\n    'id': function ($doc) {\n      return $doc.find('#product-details').attr('data-id');\n    },\n    'colors': ['.color', {\n      'id': function ($color) {\n        return $color.attr('data-id');\n      },\n      'hex': function ($color) {\n        return $color.css('background-color');\n      }\n    }]\n  }, callback);\n}\n\nfunction getProducts (callback) {\n  return htmlToJson.request({\n    uri: 'http://store.prolificinteractive.com'\n  }, ['.product', {\n    'id': function ($product) {\n      return $product.attr('data-id');\n    },\n    'image': function ($product) {\n      return $product.find('img').attr('src');\n    },\n    'colors': function ($product) {\n      // This is where we use a promise to get the colors asynchronously\n      return this\n        .get('id')\n        .then(function (id) {\n          return getProductDetails(id).get('colors');\n        });\n    }\n  }], callback);\n}\n```\n\n### Dependencies on other values\n\nFilter functions may use the `.get(propertyName)` to use a value from another key in that filter. This returns a promise representing the value rather than the value itself.\n\n```javascript\nfunction getProducts (callback) {\n  return htmlToJson.request('http://store.prolificinteractive.com', ['.product', {\n    'id': function ($product) {\n      return $product.attr('data-id');\n    },\n    'image': function ($product) {\n      return $product.find('img').attr('src');\n    },\n    'colors': function ($product) {\n      // Resolve 'id' then get product details with it\n      return this\n        .get('id')\n        .then(function (id) {\n          return getProductDetails(id).get('colors');\n        });\n    }\n  }], callback);\n}\n```\n\n### Objects\n\nNested objects within a filter are run against the same HTML context as the parent filter.\n\n```javascript\nvar html = '<div id=\"foo\"><div id=\"bar\">foobar</div></div>';\n\nhtmlToJson.parse(html, {\n  'foo': {\n    'bar': function ($doc) {\n      return $doc.find('#bar').text();\n    }\n  }\n});\n```\n\n#### $container modifier\n\nYou may specify a more specific DOM context by setting the $container property on the object filter:\n\n```javascript\nvar html = '<div id=\"foo\"><div id=\"bar\">foobar</div></div>';\n\nhtmlToJson.parse(html, {\n  'foo': {\n    $container: '#foo',\n    'bar': function ($foo) {\n      return $foo.find('#bar').text();\n    }\n  }\n});\n```\n\n### Constants\n\nStrings, numbers, and null values are simply used as the filter's value. This especially comes in handy for incrementally converting from mock data to parsed data.\n\n```javascript\nhtmlToJson.parse('<div id=\"nada\"></div>', {\n  x: 1,\n  y: 'string value',\n  z: null\n});\n```\n\n## Contributing\n\n### Running Tests\n\nTests are written in mocha and located in the `test` directory. Run them with:\n\n`npm test`\n\nThis script also executes `jshint` against `lib/` and `test/` directories.\n\n### Style\n\nPlease read the existing code in order to learn the conventions.\n","maintainers":[{"email":"eric@prolificinteractive.com","name":"ericweber"}],"time":{"modified":"2022-06-18T21:58:12.800Z","created":"2014-12-15T15:08:16.038Z","0.1.0":"2014-12-15T15:08:16.038Z","0.1.1":"2014-12-15T15:13:39.914Z","0.1.2":"2015-05-04T23:58:37.775Z","0.2.0":"2015-05-05T03:12:06.958Z","0.2.1":"2015-05-12T15:59:32.783Z","0.2.2":"2015-05-13T17:15:21.458Z","0.3.0":"2015-05-28T17:59:39.457Z","0.4.0":"2015-06-11T18:18:58.605Z","0.4.1":"2015-08-06T21:25:15.739Z","0.5.0":"2015-08-11T23:11:10.172Z","0.5.1":"2015-08-11T23:23:17.170Z","0.5.2":"2015-12-07T21:43:33.826Z","0.5.3":"2015-12-07T21:53:38.661Z","0.6.0":"2015-12-07T22:20:19.665Z","1.0.0-alpha.1":"2017-06-28T14:44:46.406Z"},"author":{"name":"Eric Weber"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/prolificinteractive/node-html-to-json#readme","repository":{"type":"git","url":"git+https://github.com/prolificinteractive/node-html-to-json.git"},"bugs":{"url":"https://github.com/prolificinteractive/node-html-to-json/issues"},"users":{"joshmili":true,"gabrielschlomo":true,"hughker":true,"ncoop":true,"coalesce":true,"whatsamoorefor":true,"moosecouture":true,"serkonyc":true,"sandalsoft":true,"andrewhuffman":true}}