{"_id":"clamav.js","_rev":"34-2bcdf9dd030688f45f8bc2ad414d482f","name":"clamav.js","description":"A node.js library for ClamAV.","dist-tags":{"latest":"0.12.0"},"versions":{"0.4.0":{"name":"clamav.js","version":"0.4.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yotang"},"license":"MIT","bugs":{"url":"https://github.com/yotang/clamav.js/issues"},"_id":"clamav.js@0.4.0","dist":{"shasum":"c4ed4df9a9a462167a71d9f62a38347652d7279a","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.4.0.tgz","integrity":"sha512-z74+uu8GUQ2uyZQvHpfG95OCB+vwHipVWpBQ6h3VSklims0jIGXFFf/5gkGP+8st1K9HBPO6hlkYs+tXV3Tnzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClTZgYFVZ7r3AvYPMQkV5RvVGbLf4P/v3yWV7Sja/b5AiEAujS4pB3FUJ6GSAizjkoTroMe/PIPgcEx0aietVC5pA4="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"yotang","email":"yotang@users.noreply.github.com"},"maintainers":[{"name":"yotang","email":"yotang@users.noreply.github.com"}]},"0.5.0":{"name":"clamav.js","version":"0.5.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yotang"},"license":"MIT","bugs":{"url":"https://github.com/yotang/clamav.js/issues"},"_id":"clamav.js@0.5.0","dist":{"shasum":"2e3b51b26f0656df7fb80cd2522cb1581742d7c0","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.5.0.tgz","integrity":"sha512-/MLHhZBxdcsX9K80xtOo8n5OONyc4wMXqlHbjAIyzR5PltC69yBGujhQsQBh06GoqFz+jKxN/bAO0QgS7UuwdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC06wYw6GQpnRmvSCyS9Ux1cbKWp7fr1doSSkBYut+pGgIhAP0sbRW2fB3omOh3bTSuTL6yGayomPZiECd38AQLKFBk"}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"yotang","email":"yotang@users.noreply.github.com"},"maintainers":[{"name":"yotang","email":"yotang@users.noreply.github.com"}]},"0.6.0":{"name":"clamav.js","version":"0.6.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yotang"},"license":"MIT","bugs":{"url":"https://github.com/yotang/clamav.js/issues"},"_id":"clamav.js@0.6.0","dist":{"shasum":"959def6a15fce654a8fe8ac1168e62346e73310a","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.6.0.tgz","integrity":"sha512-GJmXUTWCYF1i2VVinohfoJU6KH7kMp8dnRI8OT1oMSLDcLGX77kkIkC6jSiCbZEJuHbDj9TD2nMjHQvyRALA9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYiYrMyYxlmEfyKiFA2uxpBQrIYvHE+Dr/ELG8zolFZwIge3JuxazeB+f1CjwasajcD4oQqmmheVxqlRWv78OZXZw="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"yotang","email":"yotang@users.noreply.github.com"},"maintainers":[{"name":"yotang","email":"yotang@users.noreply.github.com"}]},"0.7.0":{"name":"clamav.js","version":"0.7.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yotang"},"license":"MIT","bugs":{"url":"https://github.com/yotang/clamav.js/issues"},"_id":"clamav.js@0.7.0","dist":{"shasum":"2b5776086e5ee1ea87ccec92b67319d522766fef","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.7.0.tgz","integrity":"sha512-h8bsPS4No1fTMlm1BV57uym8I4g2DoREs+Nv7Bpe4nu4Hs23+W4gyu681qwNBvBK45sOy4RY7bGE+e4gAp1KvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFMN67PzVYo6vKJhI+EzjKwfrCS+05X0lOF+eLilm8pQIhAI0Eu9sYx2xDyUV1vtyM6YRVpTgDq5oW87YYdxxpnetH"}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"yotang","email":"yotang@users.noreply.github.com"},"maintainers":[{"name":"yotang","email":"yotang@users.noreply.github.com"}]},"0.8.0":{"name":"clamav.js","version":"0.8.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yotang"},"license":"MIT","bugs":{"url":"https://github.com/yotang/clamav.js/issues"},"_id":"clamav.js@0.8.0","dist":{"shasum":"f9a7ab6dfcf7bd090b7b287e46390a19871e9c06","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.8.0.tgz","integrity":"sha512-eVNMmqszrsEcTYN1t2VjJ056Hdn/QRgP/cb79V1SNxVvzRUqnHMvRdT8lwFUioq8+WKLyyWbRxpF149nVQoLcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4ZxJ5PRgz/K9crMBQ/gFfaagh/x8ChftvrnTCScrJ1AiEA9u4sXYRmorD5sE3SZjpJfxRxmbPdPw0OvCeu+SNAYvQ="}]},"_from":"./","_npmVersion":"1.3.10","_npmUser":{"name":"yotang","email":"yotang@users.noreply.github.com"},"maintainers":[{"name":"yotang","email":"yotang@users.noreply.github.com"}]},"0.9.0":{"name":"clamav.js","version":"0.9.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yotang/clamav.js.git"},"author":{"name":"yongtang"},"license":"MIT","bugs":{"url":"https://github.com/yongtang/clamav.js/issues"},"gitHead":"9551ca8771875bfed682c2652597cc42b39c05a9","homepage":"https://github.com/yotang/clamav.js","_id":"clamav.js@0.9.0","_shasum":"decf861339556e8a4adb80d6979a2883b4de8e90","_from":"./","_npmVersion":"1.4.23","_npmUser":{"name":"yongtang","email":"yongtang@users.noreply.github.com"},"maintainers":[{"name":"yongtang","email":"yongtang@users.noreply.github.com"}],"dist":{"shasum":"decf861339556e8a4adb80d6979a2883b4de8e90","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.9.0.tgz","integrity":"sha512-nd7VUnDDOP+ppIQVgjBnZaYTnO1+2lmvnu6j8pjz6yM2TUweS195evQCCrsP3+L5DKwz29q16NHZ0uHvpRMImw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4CTxDvu8Qqi4be8+R8w8KRPLzIa1C13M7+kIEP0PrCAiBTFxUhZ3/xr/prBh/33VhanKfIn8Qdc6piV/2n6Y+R8g=="}]}},"0.10.0":{"name":"clamav.js","version":"0.10.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yongtang/clamav.js.git"},"author":{"name":"yongtang"},"license":"MIT","bugs":{"url":"https://github.com/yongtang/clamav.js/issues"},"homepage":"https://github.com/yongtang/clamav.js","gitHead":"80321f4b6ad94e079873ebd852b69d93a588659f","_id":"clamav.js@0.10.0","_shasum":"2b1afa43019e0a142dafe2fd9d2ebfa43d80ec42","_from":"./","_npmVersion":"1.4.23","_npmUser":{"name":"yongtang","email":"yongtang@users.noreply.github.com"},"maintainers":[{"name":"yongtang","email":"yongtang@users.noreply.github.com"}],"dist":{"shasum":"2b1afa43019e0a142dafe2fd9d2ebfa43d80ec42","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.10.0.tgz","integrity":"sha512-wMcWS5zLgYGo1irogsWJ5W3QP1Gg5oUIqPTDxc9S6+Jy61mGEC462r/T4Ti9aKNarCga7kYSlK1C0/1otWu+Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+hxR9/4NgjJuFAAoUHXw2zz29iez8Z5Oeyn5pw+dkHAIgHh21e1WppNNRdTKgH02tKoPBvK6av7tPHqAaCVkOnaU="}]}},"0.11.0":{"name":"clamav.js","version":"0.11.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yongtang/clamav.js.git"},"author":{"name":"yongtang"},"license":"MIT","bugs":{"url":"https://github.com/yongtang/clamav.js/issues"},"homepage":"https://github.com/yongtang/clamav.js","gitHead":"c3c320d9dfa4e3a7c9f610b0e7f1f9099bc8965d","_id":"clamav.js@0.11.0","_shasum":"653456febbc4dcce6e8be875af6ace4cba7b35c2","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"yongtang","email":"yongtang@users.noreply.github.com"},"maintainers":[{"name":"yongtang","email":"yongtang@users.noreply.github.com"}],"dist":{"shasum":"653456febbc4dcce6e8be875af6ace4cba7b35c2","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.11.0.tgz","integrity":"sha512-ssvgM1tM9IpVfjbe4XD3HqXWZD9xD1nypneExN6ZuWDY3G2UfJyjsv+KgNhPL5BvwlmWPPrVVc/S/78w/pPTvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAslzLsOnmfF0D/GT5AK31U+odUONFx6x5bgMF7987zJAiEA9xR/IAR/JAc2EFWSoU5TDw1f/8stb2vPF9rqeboJQKM="}]}},"0.12.0":{"name":"clamav.js","version":"0.12.0","description":"A node.js library for ClamAV.","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"main":"index.js","scripts":{"test":"echo \"No test\" && exit 0"},"repository":{"type":"git","url":"https://github.com/yongtang/clamav.js.git"},"author":{"name":"yongtang"},"license":"MIT","bugs":{"url":"https://github.com/yongtang/clamav.js/issues"},"homepage":"https://github.com/yongtang/clamav.js","gitHead":"0f903cf4ddc85a200f57bcb021b46368d25b2316","_id":"clamav.js@0.12.0","_shasum":"f654ebd2d10c707cb5f7d4453885acd88d2731f7","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"yongtang","email":"yongtang@users.noreply.github.com"},"maintainers":[{"name":"yongtang","email":"yongtang@users.noreply.github.com"}],"dist":{"shasum":"f654ebd2d10c707cb5f7d4453885acd88d2731f7","tarball":"https://registry.npmjs.org/clamav.js/-/clamav.js-0.12.0.tgz","integrity":"sha512-IoPwy6rzivi9PGtRR9GvnXmfCLbMi+WX46j5S/SFG3tniIqesxq6976su7jGmhSu8FLp8TUC/ZE604KxELacWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQD6MlxLdLXSHUYmlg6lFdlhEIUU/BHR8H/zPugi7t5dMAIfR7bQ0OBxVpdUpBXlrx8wD8azOGmWQcbk9MTSji3nGQ=="}]}}},"readme":"ClamAV.js\n========\n\nA node.js library for ClamAV\n-----------------------\n\n\nThis node.js library is intended to be served as a bridge between a node.js application and the ClamAV antivirus engine.\n\nThe library uses TCP socket (INET) to communicate with ClamAV daemon (clamd) through ClamAV's INSTREAM command. To use this library, use the following:\n\n```js\nvar clamav=require('clamav.js');\n\nclamav.createScanner(3310, '127.0.0.1').scan('<directory>'\n    , function(err, object, malicious) {\n  if (err) {\n    console.log(object+': '+err);\n  }\n  else if (malicious) {\n    console.log(object+': '+malicious+' FOUND');\n  }\n  else {\n    console.log(object+': OK');\n  }\n});\n\n```\n\nwill scan through the \"directory\" of a Linux machine and report any malicious files detected by ClamAV.\n\n```js\nvar fs=require('fs');\nvar clamav=require('clamav.js');\n\nvar stream = fs.createReadStream('<file>');\nclamav.createScanner(3310, '127.0.0.1').scan(stream\n    , function(err, object, malicious) {\n  if (err) {\n    console.log(object.path+': '+err);\n  }\n  else if (malicious) {\n    console.log(object.path+': '+malicious+' FOUND');\n  }\n  else {\n    console.log(object.path+': OK');\n  }\n});\n\n```\n\nwill pass a stream of \"file\" on a Linux machine and report any malicious files detected by ClamAV.\n\nAdditionally, to check the availability of the ClamAV daemon, use the following:\n\n```js\nvar clamav=require('clamav.js');\n\nclamav.ping(3310, '127.0.0.1', 1000, function(err) {\n  if (err) {\n    console.log('127.0.0.1:3310 is not available['+err+']');\n  }\n  else {\n    console.log('127.0.0.1:3310 is alive');\n  }\n});\n\n```\n\nwhere the third parameter 1000 is the timeout in milliseconds.\n\nThe version of the ClamAV daemon and the version of the definitions database could be obtained through:\n\n```js\nvar clamav=require('clamav.js');\n\nclamav.version(3310, '127.0.0.1', 1000, function(err, version) {\n  if (err) {\n    console.log('Version is not available['+err+']');\n  }\n  else {\n    console.log('Version is ['+version+']');\n  }\n});\n\n```\n\nand the third parameter 1000 is the timeout in milliseconds.\n\n\n\nInstallation\n-----------\nFirst install [node.js](http://nodejs.org) and [ClamAV](http://clamav.net), then:\n\n```sh\n$npm install clamav.js\n```\n\nPerformance\n-----------\nThe ClamAV.js library is implemented in an asynchronous way by utilizing transform stream of node.js. That is supposed to perform better when I/O is the bottleneck.\n\nLicense\n-----------\nThe ClamAV.js library is provided under the MIT License.\n\nContact\n-------\nIf you have trouble with the library or have questions, check out the GitHub repository at http://github.com/yongtang/clamav.js and I’ll help you sort it out.\n","maintainers":[{"name":"yongtang","email":"yongtang@users.noreply.github.com"}],"time":{"modified":"2022-06-13T06:05:00.457Z","created":"2014-04-26T13:43:45.534Z","0.4.0":"2014-04-26T13:43:46.085Z","0.5.0":"2014-05-03T14:38:50.657Z","0.6.0":"2014-06-15T14:48:06.725Z","0.7.0":"2014-08-16T01:11:28.620Z","0.8.0":"2014-08-16T01:17:43.047Z","0.9.0":"2014-08-23T18:00:53.344Z","0.10.0":"2014-08-23T18:06:06.318Z","0.11.0":"2014-12-09T03:06:27.744Z","0.12.0":"2015-04-25T11:17:49.532Z"},"readmeFilename":"README.md","keywords":["clamav.js","clamav","clamd","daemon","virus","scan","node.js"],"repository":{"type":"git","url":"https://github.com/yongtang/clamav.js.git"},"author":{"name":"yongtang"},"bugs":{"url":"https://github.com/yongtang/clamav.js/issues"},"license":"MIT","users":{},"homepage":"https://github.com/yongtang/clamav.js"}