{"_id":"iptrie","_rev":"14-555e08955a3a6b3eaa025ffa48b3fad5","name":"iptrie","description":"IP tries (prefix tree)","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"iptrie","description":"IP tries (prefix tree)","keywords":["iptrie","blocklist","IP","acl"],"version":"0.0.2","author":{"name":"Theo Schlossnagle"},"directories":{"lib":"."},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"},"main":"iptrie","engines":{"node":"0.2 || 0.4 || 0.5"},"licenses":[{"type":"BSD"}],"scripts":{"preinstall":"node-waf clean || true; node-waf configure build"},"dependencies":{},"devDependencies":{},"_id":"iptrie@0.0.2","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.5-pre","_defaultsLoaded":true,"dist":{"shasum":"a83a1d0b40374c0c0432ea1ef28c17bb7caa9355","bin":{"0.4-ares1.7.4-ev4.4-openssl1.0.0c-v83.1.8.3-darwin-10.7.0":{"shasum":"05eb25b535b7ff3bfb99860e56575a164033576e","tarball":"http://registry.npmjs.org/iptrie/-/iptrie-0.0.2-0.4-ares1.7.4-ev4.4-openssl1.0.0c-v83.1.8.3-darwin-10.7.0.tgz"}},"tarball":"https://registry.npmjs.org/iptrie/-/iptrie-0.0.2.tgz","integrity":"sha512-hssoBTYP3TPgHEcJRJByE+HKScfEGpuOMZDLkNK0Q4YMNQVmMfbX4RyAs6Cwm2mQkTNMCRpbMbRxXvgulyDFgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGxLyT9+xKCQ5+DCuaNf5Bhe3fJ1IumBQn22zXJLWAPbAiApAsHgIZh3oiJ+wDOBUsDmrU7lQMTO0jgzSIeWqJf/cw=="}]}},"0.0.3":{"name":"iptrie","description":"IP tries (prefix tree)","keywords":["iptrie","blocklist","IP","acl"],"version":"0.0.3","author":{"name":"Theo Schlossnagle"},"directories":{"lib":"."},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"},"main":"iptrie","engines":{"node":"0.2 || 0.4 || 0.5 || 0.6 || 0.8"},"licenses":[{"type":"BSD"}],"_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"_id":"iptrie@0.0.3","scripts":{"preinstall":"node-waf clean || (exit 0); node-waf configure build"},"dependencies":{},"devDependencies":{},"_engineSupported":false,"_npmVersion":"1.1.0-beta-7","_nodeVersion":"v0.7.0-pre","_defaultsLoaded":true,"dist":{"shasum":"f82cc6e3fb9723399ea2471c7bb694fdd865eb8a","tarball":"https://registry.npmjs.org/iptrie/-/iptrie-0.0.3.tgz","integrity":"sha512-wJXyNBMYHH2LrCKY3V7Kkm3KE9o/uOJBcmWglo1vMsbGAznwJY/2SdE0MLbYK14Yv7qaTXhsqKhCwyiT9Wk6qQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDW5RKnETG272aYaPdbz/LIkb7y6Q8J6LMtPuz9IlP2wIhAIrDMq18ZEdaKgK8ZEkJu73+gVp6ItkoOrTZ99GuYLm9"}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.4":{"name":"iptrie","description":"IP tries (prefix tree)","keywords":["iptrie","blocklist","IP","acl"],"version":"0.0.4","author":{"name":"Theo Schlossnagle"},"directories":{"lib":"."},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"},"main":"iptrie","engines":{"node":"0.2 || 0.4 || 0.5 || 0.6 || 0.8 || 0.10"},"licenses":[{"type":"BSD"}],"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"_id":"iptrie@0.0.4","dist":{"shasum":"8ea64153e15861cec1d790375a1a371158157b28","tarball":"https://registry.npmjs.org/iptrie/-/iptrie-0.0.4.tgz","integrity":"sha512-gzpvUtsIB7dHlq8pnTEMftjoNZqdI9kuMrnHSWq21lY0ioHPXDWbLVE58f8niQKXSS/P6tjb4fFrXPHeSYw+Dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsMWWqgH/qQTKpohgyqXEkDAweoxqeY4MN6O4DOJJsCAiEAzZwHpDGRNnY2PM+AdI7Auldi35shWJcqo73yW9QX3Kw="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.6":{"name":"iptrie","description":"IP tries (prefix tree)","keywords":["iptrie","blocklist","IP","acl"],"version":"0.0.6","author":{"name":"Theo Schlossnagle"},"directories":{"lib":"."},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"},"main":"iptrie","engines":{"node":"0.2 || 0.4 || 0.5 || 0.6 || 0.8 || 0.10"},"licenses":[{"type":"BSD"}],"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"_id":"iptrie@0.0.6","dist":{"shasum":"608430ad40837cf592b042d11e4a32e4aa8c82e1","tarball":"https://registry.npmjs.org/iptrie/-/iptrie-0.0.6.tgz","integrity":"sha512-rYwcVTALMjQYVmL4RpjvCzMTGHapeeIkXNOJbGEhpb9g+cb+gygFHpZwteqL1zZliNCMrOUhKRuYWaUY5OUL7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1tKya0mmPxEwTVN3TUi7Ae5PMVfhmXycuWwOAWgJ/WAiBy8q97qevxDDYzwVwSFp00cXfsAcXFVDU8l7MRhj8deQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"postwait","email":"jesus@omniti.com"},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}]},"0.0.7":{"name":"iptrie","description":"IP tries (prefix tree)","keywords":["iptrie","blocklist","IP","acl"],"version":"0.0.7","author":{"name":"Theo Schlossnagle"},"directories":{"lib":"."},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"},"main":"iptrie","engines":{"node":">= 4.2.0"},"licenses":[{"type":"BSD"}],"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"791d32759716c04d570d509a3d3a31feeeba277d","homepage":"https://github.com/postwait/node-iptrie#readme","_id":"iptrie@0.0.7","_shasum":"b16e6719f777bd785297b7770da3eb0af8f05432","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"postwait","email":"jesus@lethargy.org"},"dist":{"shasum":"b16e6719f777bd785297b7770da3eb0af8f05432","tarball":"https://registry.npmjs.org/iptrie/-/iptrie-0.0.7.tgz","fileCount":12,"unpackedSize":27696,"integrity":"sha512-S+jkTFio3D4XuB0VsuBtqwlmeluPl2t++jrfz3UJZZiBL4M+VfdKRYWINOT9PiIDshi6FE0KbHNKeXScYQiicA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICiKoHiAnpVw7l7mnyF/WematCY+agDFAXv43My7FTmzAiEA+j2/iE95CYQGeWgA/usp/Pjr+8+bvWJhiHg2OKmZd5E="}]},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iptrie_0.0.7_1531346787105_0.7656683453152751"},"_hasShrinkwrap":false}},"maintainers":[{"name":"postwait","email":"jesus@omniti.com"}],"time":{"modified":"2022-06-19T02:28:35.760Z","created":"2011-05-20T20:34:14.473Z","0.0.2":"2011-05-20T20:34:14.632Z","0.0.3":"2012-07-07T13:17:53.522Z","0.0.4":"2013-12-16T22:57:55.623Z","0.0.6":"2014-02-14T19:30:25.061Z","0.0.7":"2018-07-11T22:06:27.171Z"},"author":{"name":"Theo Schlossnagle"},"repository":{"type":"git","url":"git://github.com/postwait/node-iptrie.git"},"readme":"IP address trie implementation.\n\n1. Run `node-gyp configure build`.\n2. Test `node test/t.js`.\n\n\n## Synposis\n\nAn example:\n\n       var iptrie = require('iptrie'),\n           lookup = new iptrie.IPTrie();\n       lookup.add(\"10.0.0.0\", 8, 'rfc1918');\n       lookup.add(\"10.80.116.0\", 23,  'my little bit of the world');\n       var expectnull = lookup.find(\"1.2.3.4\"); # is null\n       var otherplace = lookup.find(\"10.10.2.2\"); # not mine\n       var myplace    = lookup.find(\"10.80.117.4\"); # mine\n\n### IPTrie.add(ipaddress, prefix_length, value)\n\nAdd a route to ipaddress/prefix and attach the provided value to it.\n\n### IPTrie.del(ipaddress, prefix)\n\nRemove the route ipaddress/prefix returning true/false based on success.\n\n### IPTrie.find(ipaddress)\n\nFind the data attached to the route that best fits the provided\nipaddress. This will use \"BPM\" biggest prefix matching just as typical\nrouting policies dictate.\n\n## Performance\n\n; `NODE_PATH=lib:. node test/benchmark.js ~/myroutemap.cidr`\n\n        343748 entries in 1.459 seconds \n        235605.20904729265 add/sec\n        66.225.209.7 performance: 552486.1878453039 lookups/sec\n        199.15.227.10 performance: 591715.9763313609 lookups/sec\n        1.2.3.4 performance: 806451.6129032258 lookups/sec\n        224.0.2.3 performance: 1041666.6666666666 lookups/sec\n        10.0.2.3 performance: 917431.1926605505 lookups/sec\n\n## License\n\nCopyright (c) 2011, OmniTI Computer Consulting, Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n    * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n    * Redistributions in binary form must reproduce the above\n      copyright notice, this list of conditions and the following\n      disclaimer in the documentation and/or other materials provided\n      with the distribution.\n    * Neither the name OmniTI Computer Consulting, Inc. nor the names\n      of its contributors may be used to endorse or promote products\n      derived from this software without specific prior written\n      permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","readmeFilename":"README.md","homepage":"https://github.com/postwait/node-iptrie#readme","keywords":["iptrie","blocklist","IP","acl"],"bugs":{"url":"http://github.com/postwait/node-iptrie/issues"}}