From e176926254d5555afac2aabca3cecaac8830212a Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 16 Apr 2018 15:52:28 -0700 Subject: [PATCH] add install to /usr/local/bin example --- Readme.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 32c68e8..d8c4ab0 100644 --- a/Readme.md +++ b/Readme.md @@ -6,16 +6,24 @@ node-prune is a small tool to prune unnecessary files from ./node_modules, such ## Installation +From source: + ``` $ go get github.com/tj/node-prune/cmd/node-prune ``` -or +From binary to `./bin/node-prune`: ``` $ curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash ``` +From binary to `/usr/local/bin/node-prune`: + +``` +$ curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin +``` + ## Usage In your app directory: