3 ms·
When using package.json, does npm intercept a script containing "rm -rf" and translate it to something different?
by Steltek 5y ago
When using package.json, does npm intercept a script containing "rm -rf" and translate it to something different?
- geewee 5y agoNo, that's why there's a bunch of packages such as rimraf[0] that implements that sort of functionality in a cross-platform way that most people use in their scripts [0]: https://www.npmjs.com/package/rimraf https://www.npmjs.com/package/rimraf
- nicoburns 5y agoNo, but it does put binaries from any installed node packages in your PATH (locally when running scripts).