squish-squash
Version:
overrides a system or user command for for all child processes
38 lines (30 loc) • 1.03 kB
Markdown
# squish-squash
override a command for for all child processes
<img width="100px" height="100px" src="https://raw.githubusercontent.com/cdaringe/squish-squash/master/img/squash.png"></img>
[ ](https://codeship.com/projects/120328)
## install
`npm install squish-squash [--save|--save-dev]`
## example
```js
const ss = require('squish-squash');
// example of squashing system or user cmds with arbitrary command
ss({
squash: 'node',
cmdpath: '/path/to/my/other/node/or/Electron'
});
// examples of squashing system or user cmds with system commands
// when any process calls `more`, `less` will actually run
ss({
squash: 'more',
syscmd: 'less'
});
// prefer the silver-searcher over grep
ss({
squash: 'grep',
syscmd: 'ag'
});
```
## why
Because sometimes you gotta. Use with caution!
# todo
- [ ] windoze support! if you know windows, it'd be great to get your input