count-lines-in-file

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

MIT License

Downloads
2K
Stars
5
Committers
3

countLinesInFile

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

});