Skip to content

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

License

Notifications You must be signed in to change notification settings

gajus/count-lines-in-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

});

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published