4 ms·
A tiny improvement that could be added - instead of locating Babel by adding your project's `node_modules/.bin` to your path or directly linking to it, you can
by DanHulton 9y ago
A tiny improvement that could be added - instead of locating Babel by adding your project's `node_modules/.bin` to your path or directly linking to it, you can always write:
`npx babel`
This will use any installed version of babel in your node_modules, or, if not installed, will temporarily install it for the duration of the command.
- cesarb 9y ago> or, if not installed, will temporarily install it for the duration of the command. Wait... doesn't that make typosquatting even more of a danger? People get used to typing "npx <command>", they mistype the command once in a while, an attacker uploads packages named after the most likely typos, and done - the attacker wins. I question the wisdom of that shortcut.