npm install sudo-prompt Usage Note: Your command should not start with thesudoprefix. varsudo=require('sudo-prompt'); varoptions={ name:'Electron', icns:'/Applications/Electron.app/Contents/Resources/Electron.icns',//(optional) }; sudo.exec('echo hello',options, ...
Installation sudo-prompthas no external dependencies and does not require any native bindings. npm install sudo-prompt Usage Note: Your command should not start with thesudoprefix. varsudo=require('sudo-prompt');varoptions={name:'Electron',icns:'/Applications/Electron.app/Contents/Resources/Electron...
npm install sudo-prompt ``` ## Usage Note: Your command should not start with the `sudo` prefix. ```javascript var sudo = require('sudo-prompt'); var options = { name: 'Electron', icns: '/Applications/Electron.app/Contents/Resources/Electron.icns', // (optional) }; sudo.exec('echo...
npm install sudo-prompt Usage Note: Your command should not start with thesudoprefix. varsudo=require('sudo-prompt');varoptions={name:'Electron',icns:'/Applications/Electron.app/Contents/Resources/Electron.icns',// (optional)};sudo.exec('echo hello',options,function(error,stdout,stderr){if(...
npm install sudo-prompt Usage Note: Your command should not start with thesudoprefix. varsudo=require('sudo-prompt');varoptions={name:'Electron',icns:'/Applications/Electron.app/Contents/Resources/Electron.icns',// (optional)};sudo.exec('echo hello',options,function(error,stdout,stderr){if(...
Run a command using sudo, prompting the user with an OS dialog if necessary. Latest version: 9.2.8, last published: 10 months ago. Start using sudo-prompt-programfiles-x86 in your project by running `npm i sudo-prompt-programfiles-x86`. There is 1 other