npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

sweet-exec

0.1.1 • Public • Published

sweet-exec

Syntax extension (made with Sweet.js) for executing shell commands using child_process.exec(...) function:

var dir = './';

exec `ls -lh {dir}` {
  if (err) {
    console.log('error', stderr);
  } else {
    console.log('success', stdout);
  }
}

and synchronously via execSync npm module:

var result = execSync `ls -lh {dir}`

Keywords

none

install

npm i sweet-exec

Downloadsweekly downloads

2

version

0.1.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability