{"_id":"sudo","_rev":"14-1f8efced2781f648fdac91c34ee9a5b0","name":"sudo","description":"Wrap sudo with optional password cache","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"author":{"name":"Jakob Borg","email":"jakob@nym.se","url":"http://nym.se/"},"name":"sudo","description":"Wrap sudo with optional password cache","version":"1.0.0","homepage":"https://github.com/calmh/node-sudo","repository":{"type":"git","url":"git://github.com/calmh/node-sudo.git"},"main":"lib/sudo.js","dependencies":{"inpath":"~1.0.2","read":"~1.0.3"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"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","_id":"sudo@1.0.0","dist":{"shasum":"3a596f25ed2c763d56b57cfa8d10339b8a3a5806","tarball":"https://registry.npmjs.org/sudo/-/sudo-1.0.0.tgz","integrity":"sha512-lS3FXmqEPTjqYkefiA9eAMQvclLt9fC0tijdRTcTfktRSwlNnNfkRgM/kpvnar5sSD7R53pPAedEXfLOR2PGyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxZD41xOBOKM2K3hOKoIXrZy42d4g6ui4a3zTHJyu2uQIhAPd90OVzn12rHd2QJOfJI5WV98RDgEpOMfEvjOPL9Si2"}]},"maintainers":[{"name":"calmh","email":"jakob@nym.se"}]},"1.0.1":{"author":{"name":"Jakob Borg","email":"jakob@nym.se","url":"http://nym.se/"},"name":"sudo","description":"Wrap sudo with optional password cache","version":"1.0.1","homepage":"https://github.com/calmh/node-sudo","repository":{"type":"git","url":"git://github.com/calmh/node-sudo.git"},"main":"lib/sudo.js","dependencies":{"inpath":"~1.0.2","read":"~1.0.3"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"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","_id":"sudo@1.0.1","dist":{"shasum":"2edb102ee0c752317777366035049d3f9dd0b1a4","tarball":"https://registry.npmjs.org/sudo/-/sudo-1.0.1.tgz","integrity":"sha512-sVaseQhJMxXh0HXvhiN/mVfgmWTQL1rtkOg73u9ygCsJjF3WeyC81CrIKC8mem+TF5UIvc/zWQoHTM4yMX7bOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqC95wGdnMpjZ6JqqQHCaWpIUrNsgdA7r4vKshgtat6AiBGMeYICbyl0TsJj6gRE6fZNWCKXHIUbq8p57P0ndFLuQ=="}]},"maintainers":[{"name":"calmh","email":"jakob@nym.se"}]},"1.0.2":{"author":{"name":"Jakob Borg","email":"jakob@nym.se","url":"http://nym.se/"},"name":"sudo","description":"Wrap sudo with optional password cache","version":"1.0.2","homepage":"https://github.com/calmh/node-sudo","repository":{"type":"git","url":"git://github.com/calmh/node-sudo.git"},"main":"lib/sudo.js","dependencies":{"inpath":"~1.0.2","read":"~1.0.3","pidof":"~1.0.2"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":">=0.8"},"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","_id":"sudo@1.0.2","dist":{"shasum":"09b2d870bf47e8efc4c110e1ec9c4eb8ba169296","tarball":"https://registry.npmjs.org/sudo/-/sudo-1.0.2.tgz","integrity":"sha512-fjrnMREDyfbL+GWKEqU87WynIZMXp+OC/0fyR7BUaVU0zZQmEALyKWfSwMwmhU3orkj4TseFNtmCU1Fzlcb5Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOsr1ZLhf/eGTFf22bZBcRQOjPi9YMyZ24a7HbiZnzvAiAgjUa2utJs4kFnhCLRDKQFVAXaMQr6t0sD5CJv5zkQjw=="}]},"maintainers":[{"name":"calmh","email":"jakob@nym.se"}]},"1.0.3":{"author":{"name":"Jakob Borg","email":"jakob@nym.se","url":"http://nym.se/"},"name":"sudo","description":"Wrap sudo with optional password cache","version":"1.0.3","homepage":"https://github.com/calmh/node-sudo","repository":{"type":"git","url":"git://github.com/calmh/node-sudo.git"},"main":"lib/sudo.js","dependencies":{"inpath":"~1.0.2","read":"~1.0.3","pidof":"~1.0.2"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":">=0.8"},"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","_id":"sudo@1.0.3","dist":{"shasum":"ccf28669120f8b74f82b846dff7f1c95120eff20","tarball":"https://registry.npmjs.org/sudo/-/sudo-1.0.3.tgz","integrity":"sha512-3xMsaPg+8Xm+4LQm0b2V+G3lz3YxtDBzlqiU8CXw2AOIIDSvC1kBxIxBjnoCTq8dTTXAy23m58g6mdClUocpmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYuwiJLl849Y8Xcih8eiXoPw7AotPYE8Gu89VvB/pjDAiEA64894FJQLo0WYL92UL4eLb5zZoVYozROdVlKTelhTyY="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"calmh","email":"jakob@nym.se"},"maintainers":[{"name":"calmh","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","maintainers":[{"name":"calmh","email":"jakob@nym.se"}],"time":{"modified":"2022-06-27T01:55:03.848Z","created":"2012-08-15T09:19:07.491Z","1.0.0":"2012-08-15T09:19:09.071Z","1.0.1":"2012-08-15T09:26:04.413Z","1.0.2":"2012-08-15T16:12:26.335Z","1.0.3":"2012-10-29T11:01:05.159Z"},"author":{"name":"Jakob Borg","email":"jakob@nym.se","url":"http://nym.se/"},"repository":{"type":"git","url":"git://github.com/calmh/node-sudo.git"},"users":{"nachbar90":true,"bret":true,"insomniaqc":true}}