# get-last-lines

> [![NPM](https://nodei.co/npm/get-last-lines.png?compact=true)](https://nodei.co/npm/get-last-lines/)

Latest version **1.0.1** (published 2018-12-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install get-last-lines
pnpm add get-last-lines
yarn add get-last-lines
bun add get-last-lines
```

## 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.0.1 |
| Published | 2018-12-15 |
| First published | 2018-12-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | xmflswood2 |

## Links

- npm: https://www.npmjs.com/package/get-last-lines
- Repository: https://github.com/xmflswood/get-last-lines
- Homepage: https://github.com/xmflswood/get-last-lines#readme
- Issues: https://github.com/xmflswood/get-last-lines/issues
- npm.io page: https://npm.io/package/get-last-lines

## Recent versions

- 1.0.1 (latest) — 2018-12-15
- 1.0.0 — 2018-12-14

## README

# Get Last N Lines

[![NPM](https://nodei.co/npm/get-last-lines.png?compact=true)](https://nodei.co/npm/get-last-lines/)

Get the last N lines of a file using node.js

## Installation

``` bash
npm install get-last-lines -S
```

## Usage

example reading last 5000 lines of a file
``` javascript
const gll = require('get-last-lines')
gll({
	path: './test.log',
	lines: 5000, //default 1
	encoding: 'utf-8', //default 'utf-8'
	newLineCharacters: ['\n'] // default ['\n']
}).then((lines) => console.log(lines));
```

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