Neoclassical Programming Multitude
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i squish-squash

DownloadsWeekly Downloads

3

Version

1.0.6

License

MIT

Last publish

Collaborators

  • avatar