read-last-lines

Read in the last N lines of a file efficiently using node.js and fs.

MIT 18 个版本
安装
npm install read-last-lines
yarn add read-last-lines
pnpm add read-last-lines
bun add read-last-lines
README

Read Last N Lines

NPM

Read in the last N lines of a file efficiently using node.js and fs.

Installation

npm install read-last-lines --save

Usage

example reading last 50 lines of a file

const readLastLines = require('read-last-lines');
readLastLines.read('path/to/file', 50)
	.then((lines) => console.log(lines));

Contributing

  1. Fork it on Github https://github.com/alexbbt/read-last-lines
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request against the development branch :D
版本列表
1.8.0 2021-01-11
1.7.2 2020-01-14
1.7.1 2019-04-05
1.7.0 2019-03-13
1.6.0 2018-07-16
1.5.0 2018-06-18
1.4.0 2018-02-28
1.3.0 2017-11-20
1.2.0 2017-07-02
1.1.4 2017-07-02
1.1.3 2017-07-02
1.1.2 2017-03-16
1.1.1 2017-03-16
1.1.0 2016-11-04
1.0.3 2016-08-15
1.0.2 2016-08-15
1.0.1 2016-08-15
0.0.4 2016-08-15