prompt-sync-history
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/prompt-sync-history package

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    611
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    611
  • 1.0.0
    0

Package Sidebar

Install

npm i prompt-sync-history

Weekly Downloads

611

Version

1.0.1

License

MIT

Last publish

Collaborators

  • davidmarkclements
  • hij1nx