1.1.0 • Published 8 years ago

count-lines-in-file v1.1.0

Weekly downloads
544
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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) => {

});