@bencmbrook/cmd

Run terminal commands in Node.

Usage no npm install needed!

<script type="module">
  import bencmbrookCmd from 'https://cdn.skypack.dev/@bencmbrook/cmd';
</script>

README

Run terminal commands in Node.

Example

const cmd = require('cmd');

cmd('echo hello world');

cmd() returns a promise, which rejects if the script fails, and resolves if it was successful.