k-gun-execsync

1.0.5 • Public • Published

execSync

Execute sync'ed shell commands in Node.js modules if not using Node.js >= 0.12 or IO.js >= 1.10 (like me).

Warning: Be sure what you do while using it!

Install

$~ npm install k-gun-execsync

Usage

var execSync = require("k-gun-execsync");
 
// direct
var output = execSync("ls -la");
console.log(output);
 
// with callback
execSync("ls -la", {}, console.log);
// or
execSync("ls -la", {}, function(output){
   console.log(output);
});

License

The MIT License

Readme

Keywords

Package Sidebar

Install

npm i k-gun-execsync

Weekly Downloads

6

Version

1.0.5

License

MIT

Last publish

Collaborators

  • k-gun