simple-tail

1.1.0 • Public • Published

Simple tail

https://img.shields.io/npm/v/simple-tail.svg https://img.shields.io/npm/dm/simple-tail.svg

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

Package Sidebar

Install

npm i simple-tail

Weekly Downloads

1

Version

1.1.0

License

GPL-3.0

Unpacked Size

231 kB

Total Files

8

Last publish

Collaborators

  • jesusgn90