cli-agent
0.4.0 • Public • Published cli-agent
Setup
npm install cli-agent --save-dev
Using
const interaction = new CLIAgent();
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
nonePackage Sidebar
Install
Weekly Downloads