@jasonmit/count-lines-in-file

1.1.0 • Public • Published

countLinesInFile

NPM version Travis build status js-canonical-style

Counts the number of lines in a file using fs.createReadStream and split.

const countLinesInFile = require('count-lines-in-file');
const path = require('path');
const targetFilePath = path.resolve(__dirname, './data.txt');

countLinesInFile(targetFilePath, (error: Error, numberOfLines: number) => {

});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    8
  • 1.0.2
    0

Package Sidebar

Install

npm i @jasonmit/count-lines-in-file

Weekly Downloads

8

Version

1.1.0

License

BSD-3-Clause

Last publish

Collaborators

  • jasonmit