{"_id":"jsgrep","_rev":"18-ef24e61eb7580b8896f3fd6cca716f25","name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","version":"0.1.0","author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"main":"jsgrep","directories":{"lib":"./src","bin":"./bin"},"engines":{"node":"*"},"dependencies":{"jsdom":">=0.2.0","opts":">=1.2.1"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"_id":"jsgrep@0.1.0","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.2","dist":{"shasum":"389b6320a5317b66e3301ad7baf6e129c8487ba4","tarball":"https://registry.npmjs.org/jsgrep/-/jsgrep-0.1.0.tgz","integrity":"sha512-H/XjsIUFZ1+d923H4q0z8BOUe42XJKpEUmP0WLFWr5R1Xu66N4ZCtJ315swxv7z+1CzxCHoc4NsFDeCvjbd0kA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmx+4lc9mhVeNSZbDtLcXvs8yeGRXIhiDXG/WZKWDMjAiEAqynbr+1LSrLVyFZ0iJ0oe1MQVPqsF1gXds8Eb60ZavU="}]}},"0.2.0":{"name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","version":"0.2.0","author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"main":"jsgrep","directories":{"lib":"./src","bin":"./bin"},"engines":{"node":"*"},"dependencies":{"jsdom":">=0.2.0","opts":">=1.2.1"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"_id":"jsgrep@0.2.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.5-pre","bin":{"jsgrep":"bin/jsgrep.js"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"03afc25653fc47e2ba2339550eddd48764f15137","tarball":"https://registry.npmjs.org/jsgrep/-/jsgrep-0.2.0.tgz","integrity":"sha512-IR0olZufNc/pg+M0DWPzeGDfB84mN+vW6K3W4hp1oLHUyAVqjR8wy54B2iAVrzmoO5NM1jMla6EmI8fnAEheIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGeA1srzv2jy40Tqcyyaz00baecqa3Vmu5vEoQWkRPxVAiEA4xA07hb5+kSh5cMUrHMjnXKBlkvhvsz2He194FmUu0g="}]},"maintainers":[{"name":"sinjax","email":"sinjax@gmail.com"}]},"0.3.0":{"name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","version":"0.3.0","author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"main":"jsgrep","directories":{"lib":"./src","bin":"./bin"},"engines":{"node":"*"},"dependencies":{"jquery":">=1.6.2","opts":">=1.2.1"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"_id":"jsgrep@0.3.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.5-pre","bin":{"jsgrep":"bin/jsgrep.js"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"068068d72f961461106fa0cdb7690a087f5a403c","tarball":"https://registry.npmjs.org/jsgrep/-/jsgrep-0.3.0.tgz","integrity":"sha512-hQHCoGnZaTAONv2J/8l5VQ6OYSh7gaxARhSkYkIF83gkNLkrO57f331mF3BurNGIiCRxeNl3duHIbNU68HLI9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUPuiYU04S7roQzz2bweobMaa9fp2AIj8OKC6Oco7AwwIgebHznw0YTEQvry8lJJba1Q3VILJaIttt4OHWlDbjIYo="}]},"maintainers":[{"name":"sinjax","email":"sinjax@gmail.com"}]},"1.0.0":{"name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","version":"1.0.0","author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"main":"jsgrep","directories":{"lib":"./src","bin":"./bin"},"engines":{"node":"*"},"dependencies":{"jquery":"1.6.2","opts":">=1.2.1"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"bin":{"jsgrep.js":"bin/jsgrep.js"},"bugs":{"url":"https://github.com/sinjax/jsgrep/issues"},"homepage":"https://github.com/sinjax/jsgrep","_id":"jsgrep@1.0.0","dist":{"shasum":"73f2be9c1871da70c058ab194509b326d0eb73b0","tarball":"https://registry.npmjs.org/jsgrep/-/jsgrep-1.0.0.tgz","integrity":"sha512-6hUHq6ZzKMs9mIaTK5atEfAUcQwVQk/yTuCSr6ubeNfQkm8776Kd5wHR9OiMGO8CR0llDvVXHUO4FzfPfIdgMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDenPj9iGgpzincVMb33i83CTEDXiL9AMFGcYtN8AmBHAiEA2uVDodOaFzmXsV+uWkB/DPuwLFYa8Fxr51ya9RJxh7E="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"sinjax","email":"sinjax@gmail.com"},"maintainers":[{"name":"sinjax","email":"sinjax@gmail.com"}]},"1.1.0":{"name":"jsgrep","description":"JQuery CSS selectors to grep HTML documents","version":"1.1.0","author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"main":"jsgrep","directories":{"lib":"./src","bin":"./bin"},"engines":{"node":"*"},"dependencies":{"jquery":"1.6.2","opts":">=1.2.1"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"bin":{"jsgrep.js":"bin/jsgrep.js"},"bugs":{"url":"https://github.com/sinjax/jsgrep/issues"},"homepage":"https://github.com/sinjax/jsgrep","_id":"jsgrep@1.1.0","dist":{"shasum":"53c05a3fb611fb454ef988fba6fc8e82c190548d","tarball":"https://registry.npmjs.org/jsgrep/-/jsgrep-1.1.0.tgz","integrity":"sha512-WdOqsGMJ7+pO0VCV3hPiKPFsDnFO4XqpaeAqEjc+IXj/vcYIFV2IHOuzaf//lWxqthZ3fb6tU0cxE8H2lrS9vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7ANXIeiXA8K8rqZGTtPNS64rB0QpIpIYkeZ9Ujz5cGAiBuJkWIqOffbc1bqcumRyIgj4tbbPJJcHXPCKwo8Fyyxw=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"sinjax","email":"sinjax@gmail.com"},"maintainers":[{"name":"sinjax","email":"sinjax@gmail.com"}]}},"maintainers":[{"name":"sinjax","email":"sinjax@gmail.com"}],"time":{"modified":"2022-06-19T06:02:34.332Z","created":"2011-03-21T19:22:15.693Z","0.1.0":"2011-03-21T19:22:16.045Z","0.2.0":"2011-08-19T07:56:53.375Z","0.3.0":"2011-08-19T08:43:43.229Z","1.0.0":"2014-04-24T11:54:52.874Z","1.1.0":"2014-04-24T12:42:28.460Z"},"author":{"name":"Sina Samangooei","email":"sinjax@gmail.com"},"repository":{"type":"git","url":"git://github.com/sinjax/jsgrep.git"},"readme":"## Introduction\n\nThis is a tool for performing jQuery CSS selection from the command line. It outputs elements or attributes to the command line letting you use the rest of the command line tools to do sexy things with HTML content. I wrote this mainly to solve a small problem I had but also as an excuse to use node.js\n\n\n\tUsage: node src/jsgrep.js [options]\n\tShow this help message\n\t\t--help\n\tAlso print subelements (with tags unless --no-tags is set)\n\t\t-r, --recursive\n\tOnly print text nodes, do not print tags\n\t\t-nt, --no-tags\n\tExtract and print attribute per element matching (with source tags unless --no-tags is set)\n\t\t-a, --attribute <value>\n\tThe CSS selector to use \n\t\t-s, --selector <value>\n\tHTML URL or Filename\n\t\t-i, --input <value>\n\n\n## Installation\n\nYou can use npm to install jsgrep like this:\n\tnpm install jsgrep\nor you can clone this and have a go yourself.\n\n## Examples\n\n###Get the geo location of a wiki-commons image (if it has one)\n\n#### Command:\n\tcurl -s http://it.wikipedia.org/wiki/File:Trento-panorama_Povo.jpg | jsgrep -s \"a[href*=geo]\" -nt\n\n#### Output:\n\t46° 4' 10.61\" N, 11° 9' 23.28\" E\n\n###Get all the images from a url and use sort and uniq to get a unique list\n\n#### Command:\n\n\tcurl -s sinjax.net | jsgrep -s img -a src -nt | sort | uniq\n\n#### Outputs:\n\n\t/graphics/cats.png\n\t/graphics/comments.png\n\t/graphics/date.png\n\t/graphics/globe.png\n\t/graphics/link.png\n\t/style/face\n\n\n###Get all the top level section names of a wikipedia article\n\n#### Command:\n\tcurl -s http://en.wikipedia.org/wiki/Markdown | jsgrep -s \".toclevel-1>a>.toctext\" -nt -r  | sed 's/ /_/g'\n\n#### Output:\n\tSyntax_examples\n\tMarkdown_users\n\tSee_also\n\tReferences\n\tExternal_links\n\n","readmeFilename":"README.markdown","homepage":"https://github.com/sinjax/jsgrep","bugs":{"url":"https://github.com/sinjax/jsgrep/issues"}}