{"_id":"nodeshark","_rev":"43-baafbe6db6d59ebf8a91ea6e714c0d74","name":"nodeshark","description":"Wrapper around libwireshark providing network packet dissection","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"nodeshark","description":"Wrapper around libwireshark providing network packet dissection","keywords":["pcap","parser","dissect","wireshark","packet","network"],"homepage":"https://github.com/nearinfinity/node-shark","version":"0.0.1","engines":{"node":">=0.6.0"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"bugs":{"url":"https://github.com/nearinfinity/node-shark/issues"},"licenses":[{"type":"MIT"}],"repositories":[{"type":"git","url":"https://github.com/nearinfinity/node-shark.git"}],"devDependencies":{"nodeunit":"~0.6.4","pcap-parser":"~>0.0.2"},"scripts":{"test":"nodeunit tests/*","install":"node-waf configure build"},"_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"_id":"nodeshark@0.0.1","dependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.4","_defaultsLoaded":true,"dist":{"shasum":"25ccff840e91e91ce5576a7cb35f66a1f5cd1e53","tarball":"https://registry.npmjs.org/nodeshark/-/nodeshark-0.0.1.tgz","integrity":"sha512-Mfqp84TbUR18Eppb/WflCMOdndK/teJp5TqGBS4EMiANdUikXFcQsSUoSqNFrY3DMa4k2G9VvIr6IvzCVEMdZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVyYPyKLifD0wyGjrvSXisdyC+44Dlby9Ba/ruzKvKAAiEAgrzzB3y2y8kKve3vIAX3A4aN3DGRzCbwO4Hkx8Cf8mw="}]},"directories":{}},"0.0.2":{"name":"nodeshark","description":"Wrapper around libwireshark providing network packet dissection","keywords":["pcap","parser","dissect","wireshark","packet","network"],"homepage":"https://github.com/nearinfinity/node-shark","version":"0.0.2","engines":{"node":">=0.6.0"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"bugs":{"url":"https://github.com/nearinfinity/node-shark/issues"},"licenses":[{"type":"MIT"}],"repositories":[{"type":"git","url":"https://github.com/nearinfinity/node-shark.git"}],"devDependencies":{"nodeunit":"~0.6.4","pcap-parser":"~>0.0.2"},"scripts":{"test":"nodeunit tests/*","install":"node-waf configure build"},"_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"_id":"nodeshark@0.0.2","dependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.4","_defaultsLoaded":true,"dist":{"shasum":"12da38ba7bd7107c9d6ad97f6b84d015d4818ae0","tarball":"https://registry.npmjs.org/nodeshark/-/nodeshark-0.0.2.tgz","integrity":"sha512-rInKF18MgRTaqBEqmqQljX1IXiTntMhFQOS8RIkZRVjduDaPhLk4e+Iz1QayRvcJjHluZQcOKE0xrrYG+IoJJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDccUP1Xlo+c8vN0yqJeBtBvlF0lTygqGWWCHYRF5GoDAIhAKikRklQE/8HCHenKFHUpWyT6GE1rJb74zE5LCwti01G"}]},"directories":{}},"0.0.3":{"name":"nodeshark","description":"Wrapper around libwireshark providing network packet dissection","keywords":["pcap","parser","dissect","wireshark","packet","network"],"homepage":"https://github.com/nearinfinity/node-shark","version":"0.0.3","engines":{"node":">=0.6.0"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"bugs":{"url":"https://github.com/nearinfinity/node-shark/issues"},"licenses":[{"type":"MIT"}],"repositories":[{"type":"git","url":"https://github.com/nearinfinity/node-shark.git"}],"devDependencies":{"nodeunit":"~0.6.4","pcap-parser":"~>0.0.2"},"scripts":{"test":"nodeunit tests/*","install":"node-waf configure build"},"_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"_id":"nodeshark@0.0.3","dependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-alpha-6","_nodeVersion":"v0.6.4","_defaultsLoaded":true,"dist":{"shasum":"7f6a2852e485892e8ba81bf7f7cc5d547cd690f8","tarball":"https://registry.npmjs.org/nodeshark/-/nodeshark-0.0.3.tgz","integrity":"sha512-elAjNBCvdwqpSIyRgrHPB0Q2QfMmeF/0E9c+BxKYxlsP9t8kDf3ujLvdPDDA2FSEjhl6iMSTPhvTu/2MO7z7iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6Nf2ZhJK51lqpg5Zu2CRyYGRQlK16b/NnGfboYii3KAiARWbgHdNa2YIn+ZsegDVPHkvf63IakVHTkde0q0aacNg=="}]}},"0.0.5":{"name":"nodeshark","description":"Wrapper around libwireshark providing network packet dissection","author":{"name":"Joe Ferner","email":"joe.ferner@nearinfinity.com"},"keywords":["pcap","parser","dissect","wireshark","packet","network"],"homepage":"https://github.com/nearinfinity/node-shark","version":"0.0.5","engines":{"node":">=0.6.0"},"maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"bugs":{"url":"https://github.com/nearinfinity/node-shark/issues"},"licenses":[{"type":"MIT"}],"repository":{"type":"git","url":"git://github.com/nearinfinity/node-shark.git"},"dependencies":{"mnm":"~0.0.2"},"devDependencies":{"nodeunit":"~0.6.4","pcap-parser":"~>0.0.2"},"scripts":{"test":"nodeunit tests/*","install":"node mnm.js build"},"main":"./index.js","_npmUser":{"name":"joeferner","email":"joe@fernsroth.com"},"_id":"nodeshark@0.0.5","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.7.11","_defaultsLoaded":true,"dist":{"shasum":"dc99c8599d3ac0521c6094574ac4e5a37584d4bd","tarball":"https://registry.npmjs.org/nodeshark/-/nodeshark-0.0.5.tgz","integrity":"sha512-KzPI2TlEOVkClbD0r38gzUduGQ6BKv7dMiagKLP37TiGom703HGeXcU11oyQ7100ivZgE5OzVJjwwEAFhA94Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/7xuOU7aDOX0VIFZ5Xy7u0+IvwutArLg38dsOh4r2NQIgOCsIdyNgmXSMH3KfqmUbsinIvAWmHzomnALEes5YAOg="}]}}},"readme":"# nodeshark\n\nWrapper around libwireshark providing network packet dissection for Node.js\n\n## Installation\n\n    $ npm install nodeshark\n\n## Usage\n\n```javascript\nvar nodeshark = require(\"nodeshark\");\n\nvar dissector = new nodeshark.Dissector(nodeshark.LINK_LAYER_TYPE_ETHERNET);\n\nvar rawPacket = {\n  header: {\n    timestampSeconds: 10,\n    timestampMicroseconds: 20,\n    capturedLength: buffer.length,\n    originalLength: buffer.length\n  },\n  data: new Buffer([\n    0x58, 0x6d, 0x8f, 0x67, 0x8a, 0x4d, 0x00, 0x1b, 0x21, 0xcf, 0xa1, 0x00, 0x08, 0x00, 0x45, 0x00,\n    0x00, 0x3b, 0xd1, 0xb0, 0x40, 0x00, 0x40, 0x11, 0xc5, 0xde, 0x0a, 0x14, 0x08, 0x65, 0xc0, 0xa8,\n    0xd0, 0x01, 0xc5, 0x32, 0x00, 0x35, 0x00, 0x27, 0xa3, 0x5b, 0x65, 0x89, 0x01, 0x00, 0x00, 0x01,\n    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x04, 0x6c, 0x69, 0x76, 0x65,\n    0x03, 0x63, 0x6f, 0x6d, 0x00, 0x00, 0x01, 0x00, 0x01\n  ]);\n};\nvar packet = dissector.dissect(rawPacket);\n\n// OR\n\nvar buffer = new Buffer([\n  0x58, 0x6d, 0x8f, 0x67, 0x8a, 0x4d, 0x00, 0x1b, 0x21, 0xcf, 0xa1, 0x00, 0x08, 0x00, 0x45, 0x00,\n  0x00, 0x3b, 0xd1, 0xb0, 0x40, 0x00, 0x40, 0x11, 0xc5, 0xde, 0x0a, 0x14, 0x08, 0x65, 0xc0, 0xa8,\n  0xd0, 0x01, 0xc5, 0x32, 0x00, 0x35, 0x00, 0x27, 0xa3, 0x5b, 0x65, 0x89, 0x01, 0x00, 0x00, 0x01,\n  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x6d, 0x61, 0x69, 0x6c, 0x04, 0x6c, 0x69, 0x76, 0x65,\n  0x03, 0x63, 0x6f, 0x6d, 0x00, 0x00, 0x01, 0x00, 0x01\n]);\nvar packet = dissector.dissect(buffer);\n```\n\nYou can also use it it conjunction with [pcap-parser](https://github.com/nearinfinity/node-pcap-parser).\n\n```javascript\nvar pcapp = require('pcap-parser');\n\nvar parser = new pcapp.Parser('/path/to/file.pcap');\nparser.on('packet', function(rawPacket) {\n  var packet = dissector.dissect(rawPacket);\n});\nparser.parse();\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Near Infinity Corporation\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\nincluded in 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\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"joeferner","email":"joe@fernsroth.com"}],"time":{"modified":"2022-06-22T03:36:24.940Z","created":"2012-01-10T15:22:58.183Z","0.0.1":"2012-01-10T15:22:59.047Z","0.0.2":"2012-01-18T16:04:19.032Z","0.0.3":"2012-01-25T18:33:44.164Z","0.0.5":"2012-06-22T17:49:17.256Z"},"author":{"name":"Joe Ferner","email":"joe.ferner@nearinfinity.com"},"repository":{"type":"git","url":"git://github.com/nearinfinity/node-shark.git"}}