Exec action for ChainyJS
Chainy action that sets the chain data as the output of an executed script
Optionally accepts a single object argument containg options to be forwarded onto safeps's spawn command, then again onto node's spawn command
// No options
require('chainy').create().require('set exec log')
.set('echo -n hello world')
.exec()
.log() // "hello world"
// Passing cwd as an option to change the directory in which the command is executed
require('chainy').create().require('set exec log')
.set('cat package.json')
.exec({cwd: __dirname})
.log() // the contents of the `package.json` file which this script was executed in
- Use:
require('chainy-plugin-exec')
- Install:
npm install --save chainy-plugin-exec
- Use:
require('chainy-plugin-exec')
- Install:
npm install --save chainy-plugin-exec
- CDN URL:
//wzrd.in/bundle/[email protected]
- Use:
require('chainy-plugin-exec')
- Install:
ender add chainy-plugin-exec
Discover the change history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Licensed under the incredibly permissive MIT license
Copyright © 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)