tag-shell
Use ES6 template tags for your node.js shell commands.
Last updated 10 years ago by paulmillr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install tag-shell 
SYNC missed versions from official npm registry.

tag-shell

Use ES6 template tags for your node.js shell commands.

Using backticks is important and the package won't work otherwise.

const sh = require('tag-shell');
const opts = {app: 'App', icon: 'icon.png'};

// Async.
sh.async`notify-send -a ${opts.app}
  -i ${opts.icon}
`;

// Streaming.
sh.spawn`node -v`.stdout.on('data', data => console.log(data.toString()))

// Sync.
const version = sh`node -v`;

License

MIT

Current Tags

  • 0.2.0                                ...           latest (10 years ago)

2 Versions

  • 0.2.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Downloads
Total 3
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE