Package Exports
- count-lines-in-file
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (count-lines-in-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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) => {
});