Skip to content

Kodeworks/tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tricks

Here is a small collection of tricks!

nvm: easily install and switch between multiple node versions

Node version manager allows you to install node per-user, and to easily switch and use different versions in different shell sessions.

Install and use specific version of Node:

nvm install 15.4.0
nvm use 15.4.0

For the latest version of node:

nvm install node
nvm use node

npx: run an npm package binary in an easy way

Instead of installing a package globally, you can use npx:

npx create-react-app my-app --template typescript

localtunnel: expose localhost to the world

npx localtunnel --port 3000

live-server: run a web development server with reload capability

npx live-server

concurrently: run multiple commands concurrently

npx concurrently "<command1>" "<command2>"
npx concurrently "npx live-server" "npx localtunnel --port 8080"

nodemon: run command on file changes

npx nodemon --exec "python -v" ./app.py
npx nodemon --ext js,ts,tsx --watch src/ --exec "npm run"

About

Tricks!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published