{"dist":{"shasum":"09b2d870bf47e8efc4c110e1ec9c4eb8ba169296","tarball":"https://registry.npmjs.org/sudo/-/sudo-1.0.2.tgz","integrity":"sha512-fjrnMREDyfbL+GWKEqU87WynIZMXp+OC/0fyR7BUaVU0zZQmEALyKWfSwMwmhU3orkj4TseFNtmCU1Fzlcb5Ag==","signatures":[{"sig":"MEQCIBOsr1ZLhf/eGTFf22bZBcRQOjPi9YMyZ24a7HbiZnzvAiAgjUa2utJs4kFnhCLRDKQFVAXaMQr6t0sD5CJv5zkQjw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/sudo.js","name":"sudo","author":{"url":"http://nym.se/","name":"Jakob Borg","email":"jakob@nym.se"},"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","engines":{"node":">=0.8"},"homepage":"https://github.com/calmh/node-sudo","repository":{"url":"git://github.com/calmh/node-sudo.git","type":"git"},"description":"Wrap sudo with optional password cache","maintainers":[{"name":"calmh","email":"jakob@nym.se"}],"dependencies":{"read":"~1.0.3","pidof":"~1.0.2","inpath":"~1.0.2"},"devDependencies":{},"optionalDependencies":{},"_id":"sudo@1.0.2","version":"1.0.2"}