file-lines-count
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

file-lines-count

NPM Travis Codecov

Count number of lines in a file in a fast asynchronous fashion.

Install

npm install file-lines-count

Usage

const linesCount = require('file-lines-count');
const lines = await linesCount('myfile.txt');
console.log(`File has ${lines} lines`);

Contributing

Code of conduct

Author

Alex Bakoushin

License

MIT

Dependents (1)

Package Sidebar

Install

npm i file-lines-count

Weekly Downloads

301

Version

1.0.1

License

MIT

Unpacked Size

3.37 kB

Total Files

5

Last publish

Collaborators

  • bakoushin