{"_id":"js-select","_rev":"21-f3a49d41488c54d562e8624951bcab77","name":"js-select","description":"This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"js-select","description":"Traverse and modify JavaScript objects with JSONSelect selectors","version":"0.1.0","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"git://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.x"},"devDependencies":{},"keywords":["json"],"_npmJsonOpts":{"file":"/Users/harth/.npm/js-select/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"js-select@0.1.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"7c8cf725ee0bb0d9b1445bf33c2db40f690bb37b","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.1.0.tgz","integrity":"sha512-iS6D1lAcpofJ0JWTOlf3SgI+yjtxMVx/2uzFTXcIA5AxC+vDtrcR4jQP63Mj1HdSY/DXvjo8Hq8yoPlHPDq93w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5t9ZFV6+jtTBiOc/ajgWIIovjj10p34D72p1Vey9qWAiAUaAnoawdTG+a1D0YSrOdBzCbGAMrBhhPZiqGqzBLIYw=="}]},"scripts":{},"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"0.2.0":{"name":"js-select","description":"Traverse and modify objects with JSONSelect selectors","version":"0.2.0","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"git://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.x"},"devDependencies":{},"keywords":["json"],"_npmJsonOpts":{"file":"/Users/harth/.npm/js-select/0.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"js-select@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"42562788fd339bfc5acbe78e1070f18be9643a2e","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.2.0.tgz","integrity":"sha512-0xkcbE4IHa1ZzabehNc3/GdCsvMMwaRTyWxUPqX1GX7DJA6DMMlW/bAs53C1tAf/h+02WEMqdIryVijrBx8wuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHR0HT0fEu3ptDON53sP6uVJDM+9hzrPZZAw9ZTqfGIFAiBBa13VQYR+U4Dm09H8N6E4VlULpJdZMqNw8PmOP1clxA=="}]},"scripts":{},"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"0.4.0":{"name":"js-select","description":"Traverse and modify objects with JSONSelect selectors","version":"0.4.0","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"git://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.x"},"devDependencies":{"nomnom":"0.6.x","color":"0.3.x"},"keywords":["json"],"_npmJsonOpts":{"file":"/Users/harth/.npm/js-select/0.4.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"js-select@0.4.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"db516c15e460536ce3e01e4d2f5613791796815f","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.4.0.tgz","integrity":"sha512-OazZCd3Nv8Ntw4YR4jy69zWw5QCmGfoDvMvcmim9ThQCN5VwbBTc6CLx9jXSdS5grbmlbJnSjrCv6YjySPLpQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyOaI9nUJ/06n5+jWgqxoca1G17D45LGpeGcO44FFXKAiAL9ox/sD/a4IHIQKfIS9czQoivUEuS5RFvL/MmSBNHNw=="}]},"scripts":{},"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"0.5.0":{"name":"js-select","description":"Traverse and modify objects with JSONSelect selectors","version":"0.5.0","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"git://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.1"},"devDependencies":{"nomnom":"0.6.x","color":"0.3.x"},"keywords":["json"],"_npmJsonOpts":{"file":"/Users/harth/.npm/js-select/0.5.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"js-select@0.5.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"815f88dd39fdfc17f36d0ffbb499861e3cd2000e","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.5.0.tgz","integrity":"sha512-xqgTV0msSdiDgmFRsYogv2O/XA6SUCg9UU6hFzVFA98lixqypqYHTTPK+jUQ5w1GKBGqQwJuG5Y5FymBjyTkQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhzFqJi7rOTBUJBH6TIwulFJxdmI6LqmlFIXB5AO2ieAiAEb5fJish6zDplP1YhmyVkCv5xwELqntlQKwjccJgqrg=="}]},"scripts":{},"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"0.5.1":{"name":"js-select","description":"Traverse and modify objects with JSONSelect selectors","version":"0.5.1","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"git://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.1"},"devDependencies":{"nomnom":"0.6.x","color":"0.3.x"},"keywords":["json"],"_npmUser":{"name":"harth","email":"fayearthur@gmail.com"},"_id":"js-select@0.5.1","optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"3a202bd030f84c235f0a07d22c1215dc67d9c7ee","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.5.1.tgz","integrity":"sha512-RQhftKY3PhrbBhNN7yyQI1TNlbj82iI3vmIQuIsU+nE++wNm2NzQPoJ6pzKM96F/xYjKbFgPRxX9Nukspggszw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbFfjarZV4pJK2xSMvUJjRhtOOJWAVrNN8Zdk75LwNxAIhALlt/MwEO8UXs6LHJdI4v1mAm9YznGP7xBryFVz9oFif"}]},"readme":"# js-select\n\njs-select uses [js-traverse](https://github.com/substack/js-traverse) to traverse and modify JavaScript object nodes that match [JSONSelect](http://jsonselect.org/) selectors.\n\n```javascript\nvar people = {\n   george: {\n      age : 35,\n      movie: \"Repo Man\"\n   },\n   mary: {\n      age: 15,\n      movie: \"Twilight\"\n   }\n};\n```\n\n### .forEach(fn)\n\nIterates over all matching nodes in the object. The callback gets a special `this` context. See [js-traverse](https://github.com/substack/js-traverse) for all the things you can do to modify and inspect the node with this context. In addition, js-select adds a `this.matches()` which will test if the node matches a selector:\n\n```javascript\nselect(people).forEach(function(node) {\n   if (this.matches(\".mary > .movie\")) {\n      this.remove();\n   }\n});\n```\n\n### .nodes()\n\nReturns all matching nodes from the object.\n\n```javascript\nselect(people, \".age\").nodes(); // [35, 15]\n```\n\n### .remove()\n\nRemoves matching elements from the original object.\n\n```javascript\nselect(people, \".age\").remove();\n```\n\n### .update(fn)\n\nUpdates all matching nodes using the given callback.\n\n```javascript\nselect(people, \".age\").update(function(age) {\n   return age - 5;\n});\n```\n\n### .condense()\n\nReduces the original object down to only the matching elements (the hierarchy is maintained).\n\n```javascript\nselect(people, \".age\").condense();\n```\n\n```javascript\n{\n    george: { age: 35 },\n    mary: { age: 15 }\n}\n```\n\n## Selectors\n\njs-select supports the following [JSONSelect](http://jsonselect.org/) selectors:\n\n```\n*\ntype\n.key\nancestor selector\nparent > selector\nsibling ~ selector\nselector1, selector2\n:root\n:nth-child(n)\n:nth-child(even)\n:nth-child(odd)\n:nth-last-child(n)\n:first-child\n:last-child\n:only-child\n:has(selector)\n:val(\"string\")\n:contains(\"substring\")\n```\n\nSee [details](http://jsonselect.org/#docs/overview) on each selector, and [try them](http://jsonselect.org/#tryit) out on the JSONSelect website.\n\n## Install\n\nFor [node](http://nodejs.org), install with [npm](http://npmjs.org):\n\n```bash\nnpm install js-select\n```\n\nFor the browser, download the select.js file or fetch the latest version from [npm](http://npmjs.org) and build a browser file using [browserify](https://github.com/substack/node-browserify):\n\n```bash\nnpm install browserify -g\nnpm install js-select\n\nbrowserify --require js-select --outfile select.js\n```\nthis will build a browser file with `require('js-select')` available.\n\n## Propers\n\nHuge thanks to [@substack](http://github.com/substack) for the ingenious [js-traverse](https://github.com/substack/js-traverse) and [@lloyd](https://github.com/lloyd) for the ingenious [JSONSelect spec](http://http://jsonselect.org/) and [selector parser](http://search.npmjs.org/#/JSONSelect).","maintainers":[{"name":"harth","email":"fayearthur@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"0.6.0":{"name":"js-select","description":"Traverse and modify objects with JSONSelect selectors","version":"0.6.0","author":{"name":"Heather Arthur","email":"fayearthur@gmail.com"},"repository":{"type":"git","url":"http://github.com/harthur/js-select.git"},"main":"./index","dependencies":{"traverse":"0.4.x","JSONSelect":"0.2.1"},"devDependencies":{"nomnom":"0.6.x","color":"0.3.x"},"keywords":["json"],"readme":"# js-select\n\njs-select uses [js-traverse](https://github.com/substack/js-traverse) to traverse and modify JavaScript object nodes that match [JSONSelect](http://jsonselect.org/) selectors.\n\n```javascript\nvar people = {\n   george: {\n      age : 35,\n      movie: \"Repo Man\"\n   },\n   mary: {\n      age: 15,\n      movie: \"Twilight\"\n   }\n};\n```\n\n### .forEach(fn)\n\nIterates over all matching nodes in the object. The callback gets a special `this` context. See [js-traverse](https://github.com/substack/js-traverse) for all the things you can do to modify and inspect the node with this context. In addition, js-select adds a `this.matches()` which will test if the node matches a selector:\n\n```javascript\nselect(people).forEach(function(node) {\n   if (this.matches(\".mary > .movie\")) {\n      this.remove();\n   }\n});\n```\n\n### .nodes()\n\nReturns all matching nodes from the object.\n\n```javascript\nselect(people, \".age\").nodes(); // [35, 15]\n```\n\n### .remove()\n\nRemoves matching elements from the original object.\n\n```javascript\nselect(people, \".age\").remove();\n```\n\n### .update(fn)\n\nUpdates all matching nodes using the given callback.\n\n```javascript\nselect(people, \".age\").update(function(age) {\n   return age - 5;\n});\n```\n\n### .condense()\n\nReduces the original object down to only the matching elements (the hierarchy is maintained).\n\n```javascript\nselect(people, \".age\").condense();\n```\n\n```javascript\n{\n    george: { age: 35 },\n    mary: { age: 15 }\n}\n```\n\n## Selectors\n\njs-select supports the following [JSONSelect](http://jsonselect.org/) selectors:\n\n```\n*\ntype\n.key\nancestor selector\nparent > selector\nsibling ~ selector\nselector1, selector2\n:root\n:nth-child(n)\n:nth-child(even)\n:nth-child(odd)\n:nth-last-child(n)\n:first-child\n:last-child\n:only-child\n:has(selector)\n:val(\"string\")\n:contains(\"substring\")\n```\n\nSee [details](http://jsonselect.org/#docs/overview) on each selector, and [try them](http://jsonselect.org/#tryit) out on the JSONSelect website.\n\n## Install\n\nFor [node](http://nodejs.org), install with [npm](http://npmjs.org):\n\n```bash\nnpm install js-select\n```\n\nFor the browser, download the select.js file or fetch the latest version from [npm](http://npmjs.org) and build a browser file using [browserify](https://github.com/substack/node-browserify):\n\n```bash\nnpm install browserify -g\nnpm install js-select\n\nbrowserify --require js-select --outfile select.js\n```\nthis will build a browser file with `require('js-select')` available.\n\n## Propers\n\nHuge thanks to [@substack](http://github.com/substack) for the ingenious [js-traverse](https://github.com/substack/js-traverse) and [@lloyd](https://github.com/lloyd) for the ingenious [JSONSelect spec](http://http://jsonselect.org/) and [selector parser](http://search.npmjs.org/#/JSONSelect).","readmeFilename":"README.md","_id":"js-select@0.6.0","dist":{"shasum":"c284e22824d5927aec962dcdf247174aefb0d190","tarball":"https://registry.npmjs.org/js-select/-/js-select-0.6.0.tgz","integrity":"sha512-npBjRT1DXCKnpLqcsaXj5XVB5l/wAcSGCp03e/6xD5BHg9cFlnoQ/wrSGZIrtaa3J7+N9tLvX1RkxcykmJVyyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW1FlfT/8zWtScSqleNVSHPJqbKv85jb90JA4dlQj6CgIhALlFkSE7KsnFX7drLqpBArPLpVLwnoNbv1OVP70bCwLR"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"harth","email":"fayearthur@gmail.com"},"maintainers":[{"name":"harth","email":"fayearthur@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."},"1.0.0":{"name":"js-select","version":"1.0.0","description":"This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/npm/deprecate-holder.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/npm/deprecate-holder/issues"},"homepage":"https://github.com/npm/deprecate-holder#readme","gitHead":"26252b4ce518fdb10b0ce6caa6ea18f54997a023","_id":"js-select@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.2.1","_npmUser":{"name":"ehsalazar","email":"ernie@npmjs.com"},"dist":{"integrity":"sha512-5GCSmdpZnsXOWrx8vyMCTBttiy2Euvp7sKEfKmrfAP/AuxoZ3uLJnb/DNAcKEolkZ+MVVo/umOyrJMk8wtagBA==","shasum":"ab654b30e0a5e4877181617c3f08dc9ed223030e","tarball":"https://registry.npmjs.org/js-select/-/js-select-1.0.0.tgz","fileCount":2,"unpackedSize":671,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnw2tDGVjQmAAnty/RmK3Y6nKBEfICiYvn5pL6S3UlTAiA2ptNvTJooAF7rU6d8SgT5cq3Xe/BZNthiDxXnWPvMMw=="}]},"maintainers":[{"email":"ernie@npmjs.com","name":"ehsalazar"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-select_1.0.0_1518827472266_0.5253342169990773"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact support@npmjs.com for more info."}},"maintainers":[{"email":"npm@npmjs.com","name":"npm"}],"time":{"modified":"2022-06-19T05:42:51.977Z","created":"2011-07-23T03:48:10.311Z","0.1.0":"2011-07-23T03:48:11.083Z","0.2.0":"2011-07-24T05:48:56.480Z","0.4.0":"2011-07-26T06:31:46.542Z","0.5.0":"2011-07-27T01:46:37.072Z","0.5.1":"2012-09-24T09:09:05.849Z","0.6.0":"2013-07-15T21:23:09.939Z","1.0.0":"2018-02-17T00:31:12.351Z"},"repository":{"type":"git","url":"git+https://github.com/npm/deprecate-holder.git"},"users":{"zgp_626":true},"homepage":"https://github.com/npm/deprecate-holder#readme","bugs":{"url":"https://github.com/npm/deprecate-holder/issues"},"license":"ISC","readme":"# Deprecated Package\n\nThis package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.\n\nPlease contact support@npmjs.com if you have questions about this package.\n","readmeFilename":"README.md"}