Hide Files and Folders in Finder

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.

SetFile hide command

Hide files and folders with:

To unhide them put a small v instead of V

You need Command Line Tools installed to do this. xcode-select --install