Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 7 lines (6 sloc) 314 Bytes
#!/bin/bash
command -v js-beautify >/dev/null 2>&1 || { echo >&2 "js-beautify not found. Run 'npm -g install js-beautify' first."; exit 1; }
COUCH_URL="${COUCH_URL-http://admin:pass@127.0.0.1:5984/medic}"
curl -s "${COUCH_URL}/api/v1/settings" | \
jq -r '[.tasks.rules] | .[0]' | \
js-beautify --indent-size 2
You can’t perform that action at this time.