file-lines-count
Version:
Count number of lines in a file in a fast asynchronous fashion.
34 lines (21 loc) • 657 B
Markdown
# file-lines-count



Count number of lines in a file in a fast asynchronous fashion.
## Install
```
npm install file-lines-count
```
## Usage
```javascript
const linesCount = require('file-lines-count');
const lines = await linesCount('myfile.txt');
console.log(`File has ${lines} lines`);
```
## Contributing
[Code of conduct](https://github.com/bakoushin/file-lines-count/blob/master/CODE_OF_CONDUCT.md)
## Author
Alex Bakoushin
## License
MIT