fallback-exec-sync0.0.1 • Public • Published
Fall back to shelljs if execSync cannot be installed. On Windows, execSync hards to be installed sometimes because of requirement for installation of node-gyp. Shelljs also has synchronous exec but a little slower than execSync. So one of solutions is that try to install execSync first and if failed, install shelljs.
npm install fallback-exec-sync
var sh = ;code = sh;console; //=> 0// Note that a little difference from execSync.// "stdout" is replaced to "output".res = sh;console; //=> 0console; //=> 1\n
Licensed under the MIT license.