3 ms·
It looks like the diff-so-fancy script is bash, and the diff-highlight script is perl. Why is it set up in npm? WTF?
by phinnaeus 11y ago
It looks like the diff-so-fancy script is bash, and the diff-highlight script is perl. Why is it set up in npm? WTF?
- lucideer 11y agoThere's no easy install methods for small simple scripts that doesn't involve multiple manual steps, have an automated upgrade path, is cross platform and is consistent+familiar to a large subset of developers. Of the options out there for the above, npm - while hassle if you don't have it already installed - is probably the closest balance of maintainer and end-developer convenience.
- phinnaeus 11y agoThanks for the explanation! I went ahead and installed npm to use this, I think it's a pretty nifty little utility and worth it.
- hobarrera 11y agomake install?
- lucideer 11y agoNothing wrong with make, but to be fair, it doesn't really meet any of the criteria I mentioned - no built-in remote repos / app directory so it's just the final step of multiple install steps - no built-in automated upgrade path - unless you're fiddling with Cygwin or MSys2, it's not really as cross-platform - likely to be less convenient for the maintainer than the package.json standard
- hueving 11y agoAnd you use maven to build it.
- Grue3 11y agoSo that it's web-scale, obviously.