83 lines
2.9 KiB
JSON
83 lines
2.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "sudo",
|
|
"scope": null,
|
|
"escapedName": "sudo",
|
|
"name": "sudo",
|
|
"rawSpec": "",
|
|
"spec": "latest",
|
|
"type": "tag"
|
|
},
|
|
"/export/home/matjaz/Zoneadmin"
|
|
]
|
|
],
|
|
"_from": "sudo@latest",
|
|
"_id": "sudo@1.0.3",
|
|
"_inCache": true,
|
|
"_location": "/sudo",
|
|
"_npmUser": {
|
|
"name": "calmh",
|
|
"email": "jakob@nym.se"
|
|
},
|
|
"_npmVersion": "1.1.62",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "sudo",
|
|
"scope": null,
|
|
"escapedName": "sudo",
|
|
"name": "sudo",
|
|
"rawSpec": "",
|
|
"spec": "latest",
|
|
"type": "tag"
|
|
},
|
|
"_requiredBy": [
|
|
"#USER"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/sudo/-/sudo-1.0.3.tgz",
|
|
"_shasum": "ccf28669120f8b74f82b846dff7f1c95120eff20",
|
|
"_shrinkwrap": null,
|
|
"_spec": "sudo",
|
|
"_where": "/export/home/matjaz/Zoneadmin",
|
|
"author": {
|
|
"name": "Jakob Borg",
|
|
"email": "jakob@nym.se",
|
|
"url": "http://nym.se/"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/calmh/node-sudo/issues"
|
|
},
|
|
"dependencies": {
|
|
"inpath": "~1.0.2",
|
|
"pidof": "~1.0.2",
|
|
"read": "~1.0.3"
|
|
},
|
|
"description": "Wrap sudo with optional password cache",
|
|
"devDependencies": {},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "ccf28669120f8b74f82b846dff7f1c95120eff20",
|
|
"tarball": "https://registry.npmjs.org/sudo/-/sudo-1.0.3.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.8"
|
|
},
|
|
"homepage": "https://github.com/calmh/node-sudo",
|
|
"main": "lib/sudo.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "calmh",
|
|
"email": "jakob@nym.se"
|
|
}
|
|
],
|
|
"name": "sudo",
|
|
"optionalDependencies": {},
|
|
"readme": "node-sudo\n=========\n\nA `child_process.spawn` but with `sudo` in between. The `sudo` password dialog\nis abstracted away so that the calling Node script can interact with the\nprogram that is run under `sudo` without worrying about it.\n\nSynopsis\n--------\n\n```javascript\nsudo(args, options)\n```\n\n - `args`: An array of arguments to `sudo`. Can be both options (such as `-v`\n or `-E`) and the program to run. Example: `['ls']`.\n\n - `options`: An optional object containing options. Recognized options are:\n\n - `cachePassword`: Boolean; whether to remember the password between\n invocations or not.\n\n - `prompt`: String; what to display to the user when the password is\n needed.\n\n - `spawnOptions`: Object; passed on directly to `spawn`. `stdio` or\n `customFds` will be overwritten.\n\nExample\n-------\n\n```javascript\nvar sudo = require('sudo');\nvar options = {\n cachePassword: true,\n prompt: 'Password, yo? ',\n spawnOptions: { /* other options for spawn */ }\n};\nvar child = sudo([ 'ls', '-l', '/tmp' ], options);\nchild.stdout.on('data', function (data) {\n console.log(data.toString());\n});\n```\n\nLicense\n-------\n\nMIT\n",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/calmh/node-sudo.git"
|
|
},
|
|
"version": "1.0.3"
|
|
}
|