{"_id":"ftp-response-parser","_rev":"10-a0d0d3fb92bf3d0779381de8b15b55af","name":"ftp-response-parser","description":"Parser for FTP server responses","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"ftp-response-parser","id":"ftp-response-parser","version":"1.0.0","description":"Parser for FTP server responses","keywords":["ftp","response","protocol","files","server","client","async"],"author":{"name":"Sergi Mansilla","email":"sergi.mansilla@gmail.com","url":"http://sergimansilla.com"},"homepage":"https://github.com/sergi/ftp-response-parser","repository":{"type":"git","url":"https://github.com/sergi/ftp-response-parser.git"},"bugs":{"url":"https://github.com/sergi/ftp-response-parser/issues"},"dependencies":{"readable-stream":"~1.1.9"},"devDependencies":{"tape":"~2.1.0","resumer":"~0.0.0"},"main":"./index.js","engines":{"node":">=0.8.0"},"scripts":{"test":"node test.js"},"licenses":[{"type":"MIT","url":"https://github.com/sergi/ftp-response-parser/blob/master/LICENSE"}],"_id":"ftp-response-parser@1.0.0","dist":{"shasum":"3968636b920dbd8ca45635512adacab0a5f3bad0","tarball":"https://registry.npmjs.org/ftp-response-parser/-/ftp-response-parser-1.0.0.tgz","integrity":"sha512-2qJuZ0sQT2t7PPQ6cmsnJLNSJ6FbTs7KFqhfvuNIzSKySAm24fIiTGiZ2Mr6l0WmHYovBR71FQQUCgO+2CFkLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvi28YYDGIe6H0nEgP7aVjgMlj/Wn19Elo0VgQxfg2qAiEA8+ECqB7U+F5mhgvjmhHwToWvhz6rGBL7QI1+GoK2VAA="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sergi","email":"sergi.mansilla@gmail.com"},"maintainers":[{"name":"sergi","email":"sergi.mansilla@gmail.com"}],"directories":{}},"1.0.1":{"name":"ftp-response-parser","id":"ftp-response-parser","version":"1.0.1","description":"Parser for FTP server responses","keywords":["ftp","response","protocol","files","server","client","async"],"author":{"name":"Sergi Mansilla","email":"sergi.mansilla@gmail.com","url":"http://sergimansilla.com"},"homepage":"https://github.com/sergi/ftp-response-parser","repository":{"type":"git","url":"https://github.com/sergi/ftp-response-parser.git"},"bugs":{"url":"https://github.com/sergi/ftp-response-parser/issues"},"dependencies":{"readable-stream":"^1.0.31"},"devDependencies":{"tape":"~2.1.0","resumer":"~0.0.0"},"main":"./index.js","engines":{"node":">=0.8.0"},"scripts":{"test":"node test.js"},"licenses":[{"type":"MIT","url":"https://github.com/sergi/ftp-response-parser/blob/master/LICENSE"}],"gitHead":"dd0b8982f067a688d6c4827440be756e40a0c183","_id":"ftp-response-parser@1.0.1","_shasum":"3b9d33f8edd5fb8e4700b8f778c462e5b1581f89","_from":".","_npmVersion":"1.4.27","_npmUser":{"name":"sergi","email":"sergi.mansilla@gmail.com"},"maintainers":[{"name":"sergi","email":"sergi.mansilla@gmail.com"}],"dist":{"shasum":"3b9d33f8edd5fb8e4700b8f778c462e5b1581f89","tarball":"https://registry.npmjs.org/ftp-response-parser/-/ftp-response-parser-1.0.1.tgz","integrity":"sha512-++Ahlo2hs/IC7UVQzjcSAfeUpCwTTzs4uvG5XfGnsinIFkWUYF4xWwPd5qZuK8MJrmUIxFMuHcfqaosCDjvIWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKeEmkrvaqV2uqAnJQmcOqZyZLrAUHZMOHsAxY62F8ugIhAJTof58pC/e+f6ewqMrEdTrVUP1wk8hiEBFbSeUrE6WU"}]},"directories":{}}},"readme":"# ftp-response-parser\n\nThis module provides a fast, lightweight streaming parser for FTP response\nformat strings.\n\nGiven a string like this:\n\n```\n211-Features supported:\\n\n EPRT\\n\n EPSV\\n\n MDTM\\n\n MLST type*;perm*;size*;modify*;unique*;unix.mode;unix.uid;unix.gid;\\n\n REST STREAM\\n\n SIZE\\n\n TVFS\\n\n UTF8\\n\n211 End FEAT.\\n\n215 UNIX Type: L8\\n\n331 Username ok, send password.\\n\n230 Login successful.\\n\n200 Type set to: Binary.\\n\n250 \"/test\" is the current directory.\\n\n```\n\nit will stream the following objects:\n\n```javascript\n{\n  code: 211,\n  text: '211-Features supported:\\n EPRT\\n EPSV\\n MDTM\\n MLST type*;perm*;size*;modify*;unique*;unix.mode;unix.uid;unix.gid;\\n REST STREAM\\n SIZE\\n TVFS\\n UTF8\\n211 End FEAT.',\n  isMark: false,\n  isError: false\n}\n{\n  code: 215,\n  text: '215 UNIX Type: L8',\n  isMark: false,\n  isError: false\n}\n{\n  code: 331,\n  text: '331 Username ok, send password.',\n  isMark: false,\n  isError: false\n}\n{\n  code: 230,\n  text: '230 Login successful.',\n  isMark: false,\n  isError: false\n}\n{\n  code: 200,\n  text: '200 Type set to: Binary.',\n  isMark: false,\n  isError: false\n}\n{\n  code: 250,\n  text: '250 \"/test\" is the current directory.',\n  isMark: false,\n  isError: false\n}\n```\n\n## Usage\n\n```javascript\n\nvar ResponseParser = require('ftp-response-parser');\n\nvar myParser = new ResponseParser();\n\nmyParser.on('readable', function() {\n  var line;\n  while (line = myParser.read()) {\n    console.log(line.code); // will emit 215\n  }\n});\n\nmyParser.write('215 UNIX Type: L8');\n\n```\n\n## Install\n\nTo get the module, with [npm](https://npmjs.org) do:\n\n```\nnpm install ftp-response-parser\n```\n\n## Test\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm test\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"sergi","email":"sergi.mansilla@gmail.com"}],"time":{"modified":"2023-01-10T12:12:14.269Z","created":"2013-11-18T14:10:49.240Z","1.0.0":"2013-11-18T14:10:53.767Z","1.0.1":"2014-09-30T10:33:43.540Z"},"author":{"name":"Sergi Mansilla","email":"sergi.mansilla@gmail.com","url":"http://sergimansilla.com"},"repository":{"type":"git","url":"https://github.com/sergi/ftp-response-parser.git"},"homepage":"https://github.com/sergi/ftp-response-parser","keywords":["ftp","response","protocol","files","server","client","async"],"bugs":{"url":"https://github.com/sergi/ftp-response-parser/issues"},"readmeFilename":"README.md","users":{"liveinjs":true}}