1.0.3 • Published 3 years ago

simple-cmd v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Simple Cmd

Tiny library to run and view cli commands from node

Note: Due to a cwd constaint some commands might written slightly different. For Example: grep -rn install *' will error, butgrep -rn install .` will work.

Async example

const {run} = require('simple-cmd');

const runAsync = async () => {
  try {
    await run('grep -rn install .');
    console.log('Grepped!')
  } catch(error) {
    console.error(error)
  }
};

runAsync();

Promise example

const {run} = require('simple-cmd');

run('grep -rn install .').then(() => {
  console.log('Grepped!')
});

Simple example

const {run} = require('simple-cmd');

run('grep -rn install .', () => {
  console.log('Grepped!')
});
1.0.3

3 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago