# You might have to sudo
npm install -g html2jade
Try out the html2jade
command. For example, with some HTML in your clipboard, do this in the shell:
pbpaste | html2jade
You should see some Jade output to the terminal.
Add this alias to your shell config (e.g. ~/.bash_profile
):
# You can just append it like this
echo "alias pbjade='pbpaste | html2jade | pbcopy'" >> ~/.bash_profile
et voilà! Now just do pbjade
in a terminal with HTML in your clipboard, and it shall be Jade-ified.