{"license":"MIT","maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"readlines","version":"0.0.1","description":"Read file by line","main":"index.js","directories":{"test":"test"},"scripts":{"test":"npm test"},"repository":{"type":"git","url":"https://github.com/booxood/readlines.git"},"keywords":["readlines","read file","lines","random"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"https://github.com/booxood/readlines/issues"},"_id":"readlines@0.0.1","dist":{"shasum":"af7566407f524529389fbb501112b58d07bd0446","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.0.1.tgz","size":1191,"integrity":"sha512-hUQTAGM0F+zULoTPnuVPw6gxjXjlD/sfMA4lycR/ewBn+cnAJGfoYxJQ+sx49FnaIeKdlvHRlGup1JZgnx4ZNg=="},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T09:31:28.395Z"},"0.0.2":{"name":"readlines","version":"0.0.2","description":"Read file lines as array","main":"index.js","scripts":{"start":"node index.js","test":"make test-all"},"config":{"travis-cov":{"threshold":60}},"devDependencies":{"mocha":"*","should":"*","travis-cov":"*","blanket":"*"},"repository":{"type":"git","url":"http://github.com/booxood/readlines.git"},"keywords":["readlines","random"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"http://github.com/booxood/readlines/issues"},"_id":"readlines@0.0.2","dist":{"shasum":"e1353fb77eddc101bd80bbcb24fdbe61c0652d75","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.0.2.tgz","size":2507,"integrity":"sha512-ZPvw5U42YrA+JGboaJmuEzpVfNeTt819iuo8luQ5sMM3dfkigENLToBycjmWrcynFbH3dpKK/ijaYlyPoIbgXQ=="},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T09:31:29.283Z"},"0.0.6":{"name":"readlines","version":"0.0.6","description":"Read file line as array","main":"index.js","directories":{"test":"test"},"scripts":{"start":"node index.js","test":"make test-all"},"devDependencies":{"mocha":"*","should":"*","travis-cov":"*","blanket":"*"},"repository":{"type":"git","url":"http://github.com/booxood/readlines.git"},"keywords":["readfile","readlines","readline"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"https://github.com/booxood/readlines/issues"},"_id":"readlines@0.0.6","dist":{"shasum":"f13cb341de7b8641c46d13556053e68a019e3f2f","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.0.6.tgz","size":3141,"integrity":"sha512-W9r4NEqOEfA+g3MWHix+nZXBo4JKdASUcRkGRrpebtEOhBvdVYh+bHbqrlaUWYNcB5zVwQkwVrxAQNuBI0034Q=="},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T09:31:30.380Z"},"0.0.8":{"name":"readlines","version":"0.0.8","description":"Read file line as array","main":"./index.js","bin":{"readlines":"./bin/readlines"},"directories":{"test":"test"},"scripts":{"start":"node index.js","test":"make test-all"},"dependencies":{"commander":"*"},"devDependencies":{"mocha":"*","should":"*","travis-cov":"*","blanket":"*"},"repository":{"type":"git","url":"http://github.com/booxood/readlines.git"},"keywords":["readfile","readlines","readline"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"https://github.com/booxood/readlines/issues"},"_id":"readlines@0.0.8","dist":{"shasum":"6a2ec2efcdcf3f6d65edc40be304f6376f7bd056","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.0.8.tgz","size":3577,"integrity":"sha512-CheRyVgAZ5cNMsw97EMUnV1OpDHiBUT1hBdkjmFz7/Ue4PeAqvbC+m6TaRPHq4FVjYdjsjch4LFpxIYvchORPA=="},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T09:31:31.250Z"},"0.1.0":{"name":"readlines","version":"0.1.0","description":"Read file line as array","main":"./index.js","bin":{"readlines":"./bin/readlines"},"directories":{"test":"test"},"scripts":{"start":"node index.js","test":"make test-all"},"dependencies":{"commander":"~2.1.0"},"devDependencies":{"mocha":"*","should":"*","istanbul":"*"},"repository":{"type":"git","url":"http://github.com/booxood/readlines.git"},"engines":{"node":">= 0.10.36","iojs":">= 1.0.0"},"keywords":["readfile","readlines","readline"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"https://github.com/booxood/readlines/issues"},"gitHead":"d1795f9dab7f3a22dc1ae60a19e44404b4ec9d16","homepage":"https://github.com/booxood/readlines","_id":"readlines@0.1.0","_shasum":"4cb4f008b3363d83f72d236c42860db792ecf19d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"dist":{"shasum":"4cb4f008b3363d83f72d236c42860db792ecf19d","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.1.0.tgz","size":4284,"integrity":"sha512-nwOl9dztAqIkxQbsi6HsNlZk/Tuvoo+mwnnQ2FJzsvLTNT1E71/xO1NWVpkJaBRvYqfv2QIslCHZBCS/NBbUzg=="},"_cnpmcore_publish_time":"2021-12-23T09:31:32.117Z"},"0.2.0":{"name":"readlines","version":"0.2.0","description":"Read file line as array","main":"./index.js","bin":{"readlines":"./bin/readlines"},"directories":{"test":"test"},"scripts":{"start":"node index.js","test":"make test-all"},"dependencies":{"commander":"~2.1.0"},"devDependencies":{"mocha":"*","should":"*","istanbul":"*","jshint":"*"},"repository":{"type":"git","url":"git+ssh://git@github.com/booxood/readlines.git"},"engines":{"node":">= 0.10.36","iojs":">= 1.0.0"},"keywords":["readfile","readlines","readline"],"author":{"name":"liucw"},"license":"MIT","bugs":{"url":"https://github.com/booxood/readlines/issues"},"gitHead":"631d2bba0f62487547bb75504f5915f2614756fc","homepage":"https://github.com/booxood/readlines#readme","_id":"readlines@0.2.0","_shasum":"289243264e869768b0a789bb86f3383967ab781f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"booxood","email":"liucw.mail@gmail.com"},"maintainers":[{"name":"booxood","email":"liucw.mail@gmail.com"}],"dist":{"shasum":"289243264e869768b0a789bb86f3383967ab781f","tarball":"http://mvn.by-health.com/nexus/content/groups/yxUI/readlines/-/readlines-0.2.0.tgz","size":4526,"integrity":"sha512-MP5OwgbAYsNpkVhTJdzfkJX+Sp/Bs84k+vF7UVooSxPfMBddq9kot49j/XUrmSaIDQyJgci20Eb5LELWDngFfA=="},"_cnpmcore_publish_time":"2021-12-23T09:31:32.991Z"}},"author":{"name":"liucw"},"name":"readlines","description":"Read file line as array","readme":"# Readlines\n\n\n[![Build Status](https://travis-ci.org/booxood/readlines.png?branch=master)](https://travis-ci.org/booxood/readlines)\n[![Coverage Status](https://coveralls.io/repos/booxood/readlines/badge.svg)](https://coveralls.io/r/booxood/readlines)\n\n\nRead file line as array.\n\n## Install\n\n```\nnpm install readlines\n```\nor\n```\nnpm install -g readlines\n```\n\nExample:\n```javascript\n  var rl = require('readlines');\n  var lines = rl.readlinesSync('example.txt');\n  for(var line in lines){\n    console.log(lines[line]);\n  };\n```\n\n\n## API\n\n### readlinesSync(filename, [options])\nSync read file by line return an array.\n```javascript\n  var lines = rl.readlinesSync(filePath);\n```\n\n### readlines(filename, [options], callback)\n**Async** read file by line return an array.\n```javascript\n  rl.readlines(filePath, function(err, lines){\n      console.log(lines);\n  });\n```\n\n### readlineSync(filename, [options], lineNum)\nSync read file by line return specific line.\n```javascript\n  var line = rl.readlineSync(filePath, 3);\n```\n\n### readline(filename, [options], lineNum, callback)\n**Async** read file by line return specific line.\n```javascript\n  rl.readline(filePath, 3, function(err, line){\n      console.log(line);\n  });\n```\n\n### readlinesStream()\nRead by line as stream.\n```javascript\n  var liner = rl.readlinesStream();\n\n  fs.createReadStream(filePath)\n      .pipe(liner)\n      .on('readable', function() {\n          var line;\n          while (line = liner.read()) {\n              console.log(line);\n          }\n      });\n```\n\n\n## License\n[The MIT License](https://github.com/booxood/readlines/blob/master/LICENSE)\n","time":{"created":"2022-01-26T21:59:36.797Z","modified":"2023-01-12T03:30:23.408Z","0.0.1":"2013-12-09T10:41:22.588Z","0.0.2":"2013-12-10T03:26:49.286Z","0.0.6":"2013-12-13T04:44:35.644Z","0.0.8":"2014-01-09T07:18:22.520Z","0.1.0":"2015-04-07T11:08:10.105Z","0.2.0":"2015-11-20T08:36:16.605Z"}}