terminal-async

Asynchronous library for working with the command line or terminal

Usage no npm install needed!

<script type="module">
  import terminalAsync from 'https://cdn.skypack.dev/terminal-async';
</script>

README

terminal-async

Install:

$ npm i --save terminal-async

Example run the terminal comand:


const terminal = require('terminal-async');

terminal.get(`echo "Test get!"`).then(console.log); // get return the Promise with result "Test get"
terminal.run(`echo "Test run!"`).then(console.log); // run return the Promise without result