shell-ejs

Write and execute shell scripts with ejs

Usage no npm install needed!

<script type="module">
  import shellEjs from 'https://cdn.skypack.dev/shell-ejs';
</script>

README

shell-ejs

Build Status

Write and execute shell scripts with ejs.

Install

npm install shell-ejs

Usage

var shellEjs = require('shell-ejs');

var variables = {
  host: 'http://my.domain.com',
  port: 3000
};
shellEjs.executeFile('./deploy.sh', variables, function (err, stdout, stderr) {
  // Do something
})

License

MIT