# simple-tail

> Simple module to tail files using Node.js

Latest version **1.1.0** (published 2018-07-16) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install simple-tail
pnpm add simple-tail
yarn add simple-tail
bun add simple-tail
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-07-16 |
| First published | 2018-07-08 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 226.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jesús Ángel González |
| Maintainers | jesusgn90 |
| Keywords | es6, tail, tailf, node, babel, es7, fs, file |

## Links

- npm: https://www.npmjs.com/package/simple-tail
- Repository: https://github.com/jesusgn90/simple-tail
- Homepage: https://github.com/jesusgn90/simple-tail#readme
- Issues: https://github.com/jesusgn90/simple-tail/issues
- npm.io page: https://npm.io/package/simple-tail

## Dependencies (1)

- [mz](https://npm.io/package/mz.md) ^2.7.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-07-16
- 1.0.0 — 2018-07-08

## README

# Simple tail

[![https://img.shields.io/npm/v/simple-tail.svg](https://img.shields.io/npm/v/simple-tail.svg)](https://www.npmjs.com/package/simple-tail)
[![https://img.shields.io/npm/dm/simple-tail.svg](https://img.shields.io/npm/dm/simple-tail.svg)](https://www.npmjs.com/package/simple-tail)

Simple module to tail files using Node.js

## Install

```
npm install simple-tail --save
```

## Usage

```js
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
```

---
_Source: https://npm.io/package/simple-tail · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
