squish-squash
v1.0.6
Published
overrides a system or user command for for all child processes
Downloads
5
Readme
squish-squash
override a command for for all child processes
install
npm install squish-squash [--save|--save-dev]
example
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