cli-agent

0.4.0 • Public • Published

cli-agent

Code Climate Issue Count Build Status

Setup

npm install cli-agent --save-dev

Using

// @see tests
const interaction = new CLIAgent(/* path to program */);
let year;
const result = await interaction.wait(/hello/i)
  .wait(/question/i)
  .send('2014\n')
  .wait(/year is (\d+)/, (matches) => {
    year = matches[1];
  })
  .start();

Readme

Keywords

none

Package Sidebar

Install

npm i cli-agent

Weekly Downloads

1

Version

0.4.0

License

ISC

Last publish

Collaborators

  • mokevnin