Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

prompt-sync-history

1.0.1 • Public • Published

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:

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

The 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.

Keywords

none

Install

npm i prompt-sync-history

DownloadsWeekly Downloads

1,260

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar