Files
cdnjs/node_modules/execSync/package.json
T

41 lines
2.3 KiB
JSON

{
"author": {
"name": "Mario Gutierrez",
"email": "mario@mgutz.com"
},
"name": "execSync",
"description": "Node's missing execSync.",
"version": "1.0.2",
"license": "MIT",
"dependencies": {
"temp": "~0.5.1"
},
"devDependencies": {
"chai": "~1.5.0",
"mocha": "~1.9.0"
},
"optionalDependencies": {},
"engines": {
"node": "*"
},
"scripts": {
"test": "mocha test/unixSpec",
"install": "node install.js"
},
"repository": {
"type": "git",
"url": "https://github.com/mgutz/execSync.git"
},
"readme": "# execSync\n\nExecutes shell commands synchronously.\n\n__WARNING__ For dev machine shell scripting only. **DO NOT USE** for\nproduction servers.\n\n## Install\n\n__Windows__ requires Python and Visual Studio 2012 (Express) installed for\nnode to build. See [node-gyp installation](https://github.com/TooTallNate/node-gyp#installation).\nPre-built binaries for node v0.8 and node v0.10 are packaged. They should work and if not try manually\nbuilding.\n\n npm install execSync\n\nSometimes a manual build is necessary on Windows even with all the tools in place, replace Visual Studio version\nwith '2010' or '2012' based on the version installed.\n\n npm install node-gyp -g\n node-gyp rebuild --msvs_version=2012\n\n## Usage\n\nRequire it\n\n var sh = require('execSync');\n\n`Run` does not capture output.\n\n var code = sh.run('echo $USER; echo some_err 1>&2; exit 1');\n console.log('return code ' + code);\n\nUse the less efficient `exec` if you need output. `exec` is just redirection\ntrickery around `run`.\n\n var result = sh.exec('echo $USER; echo some_err 1>&2; exit 1');\n console.log('return code ' + result.code);\n console.log('stdout + stderr ' + result.stdout);\n\n## Notes\n\nIn *nix and OSX version commands are run via `sh -c YOUR_COMMAND`\n\nIn __Windows__ commands are run via `cmd /C YOUR_COMMAND`\n\n## License\n\nCopyright (c) 2012, 2013 Mario Gutierrez mario@mgutz.com\n\nSee the file LICENSE for copying permission.\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/mgutz/execSync/issues"
},
"_id": "execSync@1.0.2",
"dist": {
"shasum": "0bd0ae6c451bf233b26c5c3a09519468a85d5027"
},
"_from": "execSync@~1.0",
"_resolved": "https://registry.npmjs.org/execSync/-/execSync-1.0.2.tgz"
}