I like to have clean directories when I open up Finder. Some files and folders like
node_modules can’t be hidden with a dot in the name without creating conflicts with the programs using them. But there is another way to hide them.
Hide files and folders with:
SetFile -a V ./node_modules
To unhide them put a small v instead of V
SetFile -a v ./node_modules
You need Command Line Tools installed to do this.