$ cnpm install read-last-lines
Read in the last N lines of a file efficiently using node.js and fs.
npm install read-last-lines --save
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));
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureCopyright 2013 - present © cnpmjs.org | Home |