JSON Beautifier
Jump to navigation
Jump to search
Python[edit]
echo '{"test1": 1, "test2": "win"}' | python -m json.tool
Description[edit]
Underscore provides a CLI JSON Beautifier this document describes how to install underscore or any other npm package with proxy and without it.
Requirements[edit]
npm
Install with internet access[edit]
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh sudo bash nodesource_setup.sh sudo apt install nodejs
Install behind Proxy SOCS5[edit]
proxychains curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh proxychains sudo bash nodesource_setup.sh sudo proxychains apt install nodejs
NPM does not support Socks5 proxy so you will have to install an HTTP proxy (polipo) and connect it to your socs5 proxy
sudo proxychains apt install polipo
/etc/polipo/config
socksParentProxy = 20.1.40.109:1337 socksProxyType = socks5 proxyAddress = ::0 proxyPort = 8123
sudo service polipo restart
Start your SOCKS5 proxy:
ssh -fN -D 20.1.40.109:1337 user@server
Setup npm to use Proxy
npm config set proxy http://127.0.0.1:8123 npm config set https-proxy http://127.0.0.1:8123
sudo npm install -g underscore-cli