5.0.19 • Published 1 year ago

runas-redux-rus v5.0.19

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Runas Redux

Node.js CI

Run command synchronously with administrator privilege.

This is an N-API based rewrite that adds compatibility with modern NodeJS versions.

Installing

npm install runas-redux-rus

Building

  • Clone the repository
  • Run npm install
  • Run node-gyp configure
  • Run node-gyp build

Docs

const runas = require('runas-redux-rus')

runas(command, args, options)

  • options Object
    • hide Boolean - Hide the console window, true by default.
    • admin Boolean - Run command as administrator, false by default.
    • catchOutput Boolean - Catch the stdout and stderr of the command, false by default.
    • stdin String - String which would be passed as stdin input.

Launches a new process with the given command, with command line arguments in args.

This function is synchronous and returns the exit code when the command finished.

When the catchOutput option is specified to true, an object that contains exitCode, stdout and stderr will be returned.

Limitations

  • tell me? :)
5.0.16

2 years ago

5.0.17

2 years ago

5.0.18

1 year ago

5.0.19

1 year ago

5.0.13

2 years ago

5.0.14

2 years ago

5.0.15

2 years ago

5.0.5

2 years ago

5.0.10

2 years ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago