Skip to content

Commit

Permalink
Add some notes about npx
Browse files Browse the repository at this point in the history
  • Loading branch information
saulirajala committed Apr 28, 2020
1 parent 610dc3b commit db35794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ scripts: {
- `npx browserslist` komennolla näet mitä selaimia yo. määritykseen kuuluu

`npx`-komennolla voi suorittaa suoraan npm pakettien binääritiedostoja. Mitä ne binääritiedostot on?
- node_modules/.bin kansiossa olevat npm paketit
- `node_modules/.bin` kansiossa olevat npm paketit
- toimii myös paketeille, joita ei ole asennettu lokaalisti. Esim. `npx is-github-down`
- `node node_modules/.bin/browserslist`
- `npx babel variable-value.js` => const/let muuttuu var
- `npx babel Human.js` => class muuttuu funktioksi, mutta includes() ei tehdä mitään
Expand Down

0 comments on commit db35794

Please sign in to comment.