History manager for `prompt-sync`
npm install prompt-sync-historyHistory manager for prompt-sync
filename is a location for the history filemax 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 module
uses this interface to manage history interactions.
To create your own custom history handler, simply fork
this repo and modify as desired.