{"_id":"line-by-line","_rev":"49-8984b3f05c1bd020fe97578093c226bb","name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"author":{"name":"Markus von der Wehd","email":"mvdw@mwin.de"},"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.0","keywords":["line","file","reader","fs"],"homepage":"https://github.com/RustyMarvin/line-by-line","repository":{"type":"git","url":"git@github.com:RustyMarvin/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"nodeunit":"latest"},"optionalDependencies":{},"engines":{"node":">=0.6.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/RustyMarvin/line-by-line/master/LICENSE.txt"}],"_id":"line-by-line@0.1.0","dist":{"shasum":"ee2bd4ba28d0cd77437e609a0c2c16101b7dda75","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.0.tgz","integrity":"sha512-qIrPN0OGeLT+WtKi29JmuE3N3cHErMHt50HNcCWzkkffK87OO+zIOa7bX7TPKU8O4nAo8DQaG+hlN53pr2YWGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICrO6LCBuzOkjPDsNTOzMtyqbKQteKSCynNUcWuPD+cLAiBGlRIMrgeRye60o4GQqj6ruN4ugY7kETdQ5biIDI5vfw=="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"rustymarvin","email":"mvdw@mwin.de"},"maintainers":[{"name":"rustymarvin","email":"mvdw@mwin.de"}],"directories":{}},"0.1.1":{"author":{"name":"Markus von der Wehd","email":"mvdw@mwin.de"},"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.1","keywords":["line","file","reader","fs"],"homepage":"https://github.com/RustyMarvin/line-by-line","repository":{"type":"git","url":"git@github.com:RustyMarvin/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"nodeunit":"latest"},"optionalDependencies":{},"engines":{"node":">=0.6.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/RustyMarvin/line-by-line/master/LICENSE.txt"}],"_id":"line-by-line@0.1.1","dist":{"shasum":"cc6148f72222f5c97ec4416b6653d5493ee44537","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.1.tgz","integrity":"sha512-oMHXMyvO6pIY1TUNaeyANldUcYEmagZxT3HeT4IguJaCIRkuCUuUwPnIINELoclb4ah+UZJvnQdqrrT/L4DiCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy6aDwEow9wimK/958ZEKz0/7rxaqAyEOIR1XNsNZh0wIgWV3RZSMg0jH1FXhX+f8DMCWjlBF37R69AOLVo3o+wAA="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"rustymarvin","email":"mvdw@mwin.de"},"maintainers":[{"name":"rustymarvin","email":"mvdw@mwin.de"}],"directories":{}},"0.1.2":{"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.2","keywords":["line","file","reader","fs"],"homepage":"https://github.com/Osterjour/line-by-line","repository":{"type":"git","url":"git@github.com:Osterjour/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"nodeunit":"latest"},"optionalDependencies":{},"engines":{"node":">=0.6.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/Osterjour/line-by-line/master/LICENSE.txt"}],"gitHead":"c34d3069efda66c081d92c083cd7cf777c7ca482","bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"},"_id":"line-by-line@0.1.2","scripts":{},"_shasum":"d79bcfb00ef14890fb27438a0d76c282dd983fbb","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.21","_npmUser":{"name":"osterjour","email":"mo@mo-its.de"},"maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"dist":{"shasum":"d79bcfb00ef14890fb27438a0d76c282dd983fbb","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.2.tgz","integrity":"sha512-kFVf4qUAasLbNjv3oxnezUA9x6fy9KFtGRv2uF3wbPwXKePV1j6600VQkdgQwjqFlcU7ql4GiAkRvAROq5EExw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZkEIg5cqEuNyfmUxH9mr4nBsjsLYR9gI0p9S7Rc2HmwIgPVEBhHAAHkllGhxUEwRJ7Kf7XjsC9BCdMmjk9BXdXP4="}]},"directories":{}},"0.1.3":{"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.3","keywords":["line","file","reader","fs"],"homepage":"https://github.com/Osterjour/line-by-line","repository":{"type":"git","url":"git@github.com:Osterjour/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"jshint":"2.5.x"},"scripts":{"test":"jshint ."},"optionalDependencies":{},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/Osterjour/line-by-line/master/LICENSE.txt"}],"gitHead":"b75ab3d58bebe6e35eea6301ef46fd658b495a42","bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"},"_id":"line-by-line@0.1.3","_shasum":"2d6fd3005b5d93b8f613c3662479d01c99ce9cad","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.21","_npmUser":{"name":"osterjour","email":"mo@mo-its.de"},"maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"dist":{"shasum":"2d6fd3005b5d93b8f613c3662479d01c99ce9cad","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.3.tgz","integrity":"sha512-WBOlQ0lAIOCrxabMx1ya+hUX1/1I5xENsidNMPLJlk1bPkoymW7U5Yh3DiJMsQvIWMj5zRJYvXvknyl2YVYOAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyFqO1SazOAFZmqa3f8k+9MfCrRPyeDfTTv8FiV983mQIhAIQ6coSApiSSj+xavkMtTinoT74zfRD8FvYjHRGWvRYg"}]},"directories":{}},"0.1.4":{"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.4","keywords":["line","file","reader","fs"],"homepage":"https://github.com/Osterjour/line-by-line","repository":{"type":"git","url":"git@github.com:Osterjour/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"jshint":"2.5.x"},"scripts":{"test":"jshint ."},"optionalDependencies":{},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/Osterjour/line-by-line/master/LICENSE.txt"}],"gitHead":"447f25c2bf3451516da7bfe6899fa6db8eceb176","bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"},"_id":"line-by-line@0.1.4","_shasum":"7afbf8d6b975b31d4f9af21db8ff57939e9fa403","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"osterjour","email":"mo@mo-its.de"},"maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"dist":{"shasum":"7afbf8d6b975b31d4f9af21db8ff57939e9fa403","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.4.tgz","integrity":"sha512-CkyR5BBkHXEZvDlXuutkEHtiI/mqnGVHWo8I0i83drQBhjJCN+9RSSgcnc1rYwLGhN42ReJcQ37Dpw5wPPM6Eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzsIULGIQ/kaAvjL3l0gPrN/08qzxFZYJGb1rouy6oRAiBbNCqUKqqh4CnvgECMo89rtEY1GrsAcAdrmLWIW+S/FQ=="}]},"directories":{}},"0.1.5":{"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.5","keywords":["line","file","reader","fs"],"homepage":"https://github.com/Osterjour/line-by-line","repository":{"type":"git","url":"git+ssh://git@github.com/Osterjour/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"jshint":"2.5.x"},"scripts":{"test":"jshint ."},"optionalDependencies":{},"engines":{"node":">=0.8.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/Osterjour/line-by-line/master/LICENSE.txt"}],"gitHead":"2511b4ef4aea59a3e6002c084b64abb38b291a93","bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"},"_id":"line-by-line@0.1.5","_shasum":"19c45b59f0a80632c30b5c43a647fe15aab905c2","_from":".","_npmVersion":"2.15.0","_nodeVersion":"0.10.44","_npmUser":{"name":"osterjour","email":"mo@mo-its.de"},"dist":{"shasum":"19c45b59f0a80632c30b5c43a647fe15aab905c2","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.5.tgz","integrity":"sha512-YJta2IU+klak1I4RJZNjZAmjOeFWW/5h/a4ru2ocmXp/yrEH+DOsuBxFZ7k6o7gVeFaR7P95E9DAl5PxpoyEeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/R8rZYWT5Ern2MYpZM4AnG9RLhDSRIgdvPxFq6lmsBwIhAKe2HzL8LsUtPydQug1NT/qa5wm1qEpNkD9ZOyrsIHwT"}]},"maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/line-by-line-0.1.5.tgz_1467265876494_0.1305488352663815"},"directories":{}},"0.1.6":{"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"name":"line-by-line","description":"A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.","version":"0.1.6","keywords":["line","file","reader","fs"],"homepage":"https://github.com/Osterjour/line-by-line","repository":{"type":"git","url":"git+ssh://git@github.com/Osterjour/line-by-line.git"},"main":"line-by-line.js","dependencies":{},"devDependencies":{"jshint":"2.5.x"},"scripts":{"test":"jshint ."},"optionalDependencies":{},"engines":{"node":">=4.0.0"},"licenses":[{"type":"MIT","url":"https://raw.github.com/Osterjour/line-by-line/master/LICENSE.txt"}],"gitHead":"ec2e157dd332d8c980d0b6e5d30e4f793aedad42","bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"},"_id":"line-by-line@0.1.6","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"osterjour","email":"mo@mo-its.de"},"dist":{"integrity":"sha512-MmwVPfOyp0lWnEZ3fBA8Ah4pMFvxO6WgWovqZNu7Y4J0TNnGcsV4S1LzECHbdgqk1hoHc2mFP1Axc37YUqwafg==","shasum":"6236edd1db2d1695addf11f0268e74a181561c30","tarball":"https://registry.npmjs.org/line-by-line/-/line-by-line-0.1.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNEGGuR96a6pTrBZm2GbAAfXS4+ja73UfUg/qTYP2nGAiEA3Tp3tn76jHHzWpJH0Q0UKxITCpax4f4AthHi+YtN2Qo="}]},"maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/line-by-line-0.1.6.tgz_1514291956476_0.9586034447420388"},"directories":{}}},"readme":"[![Build Status](https://travis-ci.org/Osterjour/line-by-line.svg?branch=master)](https://travis-ci.org/Osterjour/line-by-line)\r\n[![npm version](https://badge.fury.io/js/line-by-line.svg)](http://badge.fury.io/js/line-by-line)\r\n\r\n# Line By Line\r\nis a [NodeJS](http://nodejs.org/) module\r\nthat helps you reading large text files, line by line,\r\nwithout buffering the files into memory.\r\n\r\nInstallation:\r\n\r\n    npm install line-by-line\r\n\r\n\r\n## Usage:\r\n\r\nSynchronous processing of lines:\r\n\r\n\tvar LineByLineReader = require('line-by-line'),\r\n\t    lr = new LineByLineReader('big_file.txt');\r\n\r\n\tlr.on('error', function (err) {\r\n\t\t// 'err' contains error object\r\n\t});\r\n\r\n\tlr.on('line', function (line) {\r\n\t\t// 'line' contains the current line without the trailing newline character.\r\n\t});\r\n\r\n\tlr.on('end', function () {\r\n\t\t// All lines are read, file is closed now.\r\n\t});\r\n\r\nAsynchronous processing of lines:\r\n\r\n\tvar LineByLineReader = require('line-by-line'),\r\n\t    lr = new LineByLineReader('big_file.txt');\r\n\r\n\tlr.on('error', function (err) {\r\n\t\t// 'err' contains error object\r\n\t});\r\n\r\n\tlr.on('line', function (line) {\r\n\t\t// pause emitting of lines...\r\n\t\tlr.pause();\r\n\r\n\t\t// ...do your asynchronous line processing..\r\n\t\tsetTimeout(function () {\r\n\r\n\t\t\t// ...and continue emitting lines.\r\n\t\t\tlr.resume();\r\n\t\t}, 100);\r\n\t});\r\n\r\n\tlr.on('end', function () {\r\n\t\t// All lines are read, file is closed now.\r\n\t});\r\n\t\r\nInitialize with Stream:\r\n\r\n    var LineByLineReader = require('line-by-line'),\r\n\t    lr = new LineByLineReader(S3.getObject({ Bucket, Key }).createReadStream());\r\n\r\n## API:\r\n\r\n**Class: LineReader(path [, options])**\r\n\r\n`path` specifies the file to read or Stream\r\n\r\n`options` is an object with the following defaults:\r\n```\r\n{ encoding: 'utf8',\r\n  skipEmptyLines: false }\r\n```\r\n\r\n`encoding` can be `'utf8'`, `'ascii'`, or `'base64'`.\r\n\r\nIf `skipEmptyLines` set to `true`, empty lines don't trigger a 'line' event.\r\n\r\nYou can also pass `start` and `end` position in bytes to read from file region:\r\n\r\n```\r\n{ encoding: 'utf8',\r\n  skipEmptyLines: true,\r\n  start: 1000 }\r\n```\r\n\r\n\r\n**Event: 'line'**\r\n\r\n    function (line) { }\r\n\r\nEmitted on every line read.\r\n\r\n`line` contains the line without the line ending character.\r\n\r\n\r\n**Event: 'error'**\r\n\r\n    function (error) { }\r\n\r\nEmitted if an error occurred.\r\n\r\n`error` contains the error object.\r\n\r\n\r\n**Event: 'end'**\r\n\r\n    function () { }\r\n\r\nEmitted if all lines are read.\r\n\r\n\r\n**pause()**\r\n\r\nCall this method to stop emitting 'line' events.\r\n\r\n\r\n**resume()**\r\n\r\nAfter calling this method, 'line' events gets emitted again.\r\n\r\n\r\n**close()**\r\n\r\nStops emitting 'line' events, closes the file and emits the 'end' event.\r\n\r\n\r\n## License:\r\n\r\nThe MIT License (MIT)\r\n\r\nCopyright © 2012 Markus von der Wehd\r\n","maintainers":[{"name":"osterjour","email":"mo@mo-its.de"}],"time":{"modified":"2022-06-19T12:27:42.088Z","created":"2012-10-17T20:11:54.793Z","0.1.0":"2012-10-17T20:11:57.830Z","0.1.1":"2012-10-17T22:45:16.739Z","0.1.2":"2014-11-01T18:31:02.803Z","0.1.3":"2014-11-01T20:49:42.403Z","0.1.4":"2015-08-19T13:23:46.346Z","0.1.5":"2016-06-30T05:51:18.808Z","0.1.6":"2017-12-26T12:39:17.389Z"},"author":{"name":"Markus Ostertag","email":"mo@mo-its.de"},"repository":{"type":"git","url":"git+ssh://git@github.com/Osterjour/line-by-line.git"},"users":{"hrmoller":true,"kappuccino":true,"happy-coding":true,"salarsayyad":true,"rendon":true,"joelbair":true,"mikend":true,"flockonus":true,"matepaiva":true,"wattanar":true,"usingthesystem":true,"ahsanshafiq":true,"yeahoffline":true,"wendellm":true,"vamakoda":true,"ymk":true,"saurabh619":true,"eehackr":true,"cbetancourt":true,"nxc":true,"atelischak":true,"lgh06":true,"archcorsair":true,"glennhefley":true,"zuizuihao":true,"papasavva":true,"alexreg90":true,"alexreg":true,"maxorelus":true,"jsrraman":true},"homepage":"https://github.com/Osterjour/line-by-line","keywords":["line","file","reader","fs"],"readmeFilename":"README.md","contributors":[{"name":"Markus von der Wehd","email":"mvdw@mwin.de"}],"bugs":{"url":"https://github.com/Osterjour/line-by-line/issues"}}