git.fiddlerwoaroof.com
Browse code

feat: add npx-wrapper

Ed L authored on 08/11/2020 19:38:43
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env zsh
2
+
3
+if [[ -n "$DEBUG_NPX_WRAPPER" ]]; then
4
+  set -x
5
+fi
6
+
7
+path=("${(@)path:#$HOME/bin}")
8
+package="$(basename "$0")"
9
+
10
+exec npx -q "${package//://}" "$@"