Package Exports
- prompt-sync-history
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prompt-sync-history) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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:
{
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.