GithubHelp home page GithubHelp logo

chainyjs / exec Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 168 KB

Chainy action that sets the chain data as the output of an executed script

License: Other

CoffeeScript 84.23% JavaScript 15.77%
chainy-action chainy-plugin chainy

exec's Introduction

Exec action for ChainyJS

Build Status NPM version Dependency Status Development Dependency Status
Gittip donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

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

Install

  • 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

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright ยฉ 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)

exec's People

Contributors

balupton avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.