@achievewithoutborders/node-exec

1.2.10 • Public • Published

NodeJs Exec Wrapper

A simple node js exec wrapper

Syntax Async

args = { command, debug }
    command = string
    debug = boolean optional # will show console output

callback = (result,error)=> {}

Execute.async(args, callback)

Syntax Sync (Promise)

args = { command, debug }
    command = string
    debug = boolean optional # will show console output

Execute.sync(args)

Usage

const Execute = require('@achievewithoutborders/node-exec')

Execute.async({ 'ls', debug: true }, (result, error) =>
    console.log(result, error)
)

Execute.sync(args).then(res => console.log(res))

Readme

Keywords

none

Package Sidebar

Install

npm i @achievewithoutborders/node-exec

Weekly Downloads

5

Version

1.2.10

License

ISC

Unpacked Size

2.5 kB

Total Files

4

Last publish

Collaborators

  • ron-michael
  • adrian.cenizal2
  • phillip.causing