refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / prettier / install.sh
1 #!/bin/bash
2
3 function __init_prettier() {
4     if [ -z "$(npm --version 2> /dev/null)" ]; then
5         webi node
6         export PATH="$HOME/.local/opt/node/bin:$PATH"
7     fi
8     npm install -g prettier@latest
9 }
10
11 __init_prettier