diff options
Diffstat (limited to 'bash/npm.sh')
-rw-r--r-- | bash/npm.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bash/npm.sh b/bash/npm.sh new file mode 100644 index 0000000..f0a5d30 --- /dev/null +++ b/bash/npm.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +npm_i() { + (which $1 &> /dev/null) || { + yellow "Installing $2" + npm i -g $2 + } +} + +npm_i eq edn-eq +npm_i react-native react-native-cli +npm_i detox detox-cli +npm_i xml2json xml2json-command |