#!/usr/bin/env bash

if type brew &> /dev/null; then
	brew uninstall node
	brew uninstall n
	brew uninstall nvm
fi

sudo rm -rfv \
	/usr/local/bin/npm \
	/usr/local/bin/node \
	/usr/local/share/man/man1/node* \
	/usr/local/lib/dtrace/node.d \
	~/.npm \
	~/.node-gyp \
	/opt/local/bin/node \
	/opt/local/include/node \
	/usr/local/opt/nvm \
	/opt/local/lib/node_modules\
	/usr/local/lib/node_modules \
	/usr/local/lib/npm-packages \
	/opt/homebrew/lib/npm-packages \
	/opt/homebrew/opt/nvm \
	/usr/local/include/node \
	/usr/local/n \
	~/n \
	~/.nvm \

if type brew &> /dev/null; then
	brew prune
fi

#!/usr/bin/env bash

if type brew &> /dev/null; then
	brew uninstall node
	brew uninstall n
	brew uninstall nvm
fi

sudo rm -rfv \
	/usr/local/bin/npm \
	/usr/local/bin/node \
	/usr/local/share/man/man1/node* \
	/usr/local/lib/dtrace/node.d \
	~/.npm \
	~/.node-gyp \
	/opt/local/bin/node \
	/opt/local/include/node \
	/usr/local/opt/nvm \
	/opt/local/lib/node_modules\
	/usr/local/lib/node_modules \
	/usr/local/lib/npm-packages \
	/opt/homebrew/lib/npm-packages \
	/opt/homebrew/opt/nvm \
	/usr/local/include/node \
	/usr/local/n \
	~/n \
	~/.nvm \

if type brew &> /dev/null; then
	brew cleanup
fi

Replace deprecated `brew prune` with `brew cleanup`
Replace deprecated `brew prune` with `brew cleanup`
