# prompt-sync-history

> History manager for `prompt-sync`

Latest version **1.0.1** (published 2016-02-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install prompt-sync-history
pnpm add prompt-sync-history
yarn add prompt-sync-history
bun add prompt-sync-history
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-02-29 |
| First published | 2016-02-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/prompt-sync-history) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Mark Clements |
| Maintainers | davidmarkclements |

## Links

- npm: https://www.npmjs.com/package/prompt-sync-history
- Repository: https://github.com/davidmarkclements/prompt-sync-history
- Homepage: https://github.com/davidmarkclements/prompt-sync-history#readme
- Issues: https://github.com/davidmarkclements/prompt-sync-history/issues
- npm.io page: https://npm.io/package/prompt-sync-history

## Recent versions

- 1.0.1 (latest) — 2016-02-29
- 1.0.0 — 2016-02-29

## README

# prompt-sync-history

History manager for `prompt-sync`

## API

### `history(filename, max)`

`filename` is a location for the history file
`max` is the maximum entries to store

Returns an object with the following methods:

```js
{
  atStart, atPenultimate, pastEnd, atEnd, 
  prev, next, reset, push, save
}
```

The [prompt-sync](http://npm.im/prompt-sync) module
uses this interface to manage history interactions.

To create your own custom history handler, simply fork
this repo and modify as desired.

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