1.1.0 • Published 6 years ago
simple-tail v1.1.0
Simple tail
Simple module to tail files using Node.js
Install
npm install simple-tail --save
Usage
import tail from 'simple-tail'
...
// Inside an async function
const data = await tail('path/file',numberOfLines)
// [line1, line2, line3, ...]
Breaking changes from 1.0.0 to 1.1.x
- Since v1.1.0 it has a new dependency:
"mz": "^2.7.0"
. - Reverse parameter has been deprecated (always returns reversed result)
- Number of lines must be a non-zero integer.
Contributing
You should fork this repository and clone it. You must edit files under lib/
folder.
git clone https://github.com/<your_username>/simple-tail
cd simple-tail
npm install
npm test