squish-squash

1.0.6 • Public • Published

squish-squash

override a command for for all child processes

Codeship Status for cdaringe/squish-squash

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

Package Sidebar

Install

npm i squish-squash

Weekly Downloads

0

Version

1.0.6

License

MIT

Last publish

Collaborators

  • cdaringe