From 87aa013ec45359fecc691c70da2bd0b7b0070007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E8=B6=85?= <2325690622@qq.com> Date: Fri, 14 Apr 2023 14:43:00 +0800 Subject: [PATCH 1/2] Replace `which` with `node-which` in README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6e86ab..265888f 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,16 @@ await which('node', { path: someOtherPath, pathExt: somePathExt }) ## CLI USAGE -Same as the BSD `which(1)` binary. +Just like the BSD `which(1)` binary but using `node-which`. ``` -usage: which [-as] program ... +usage: node-which [-as] program ... ``` +We used to use `which` as the binaray's name, but it result in some issues later, +so we renamed it to `node-which`. You can learn more about this +[here](https://github.com/npm/node-which/commit/d65012c1af5d5424bef9fd7c22ad42613804dbab) + ## OPTIONS You may pass an options object as the second argument. From 928fcb647f7e26dbd04a659c83499849aa264fb3 Mon Sep 17 00:00:00 2001 From: Gar Date: Fri, 14 Apr 2023 07:46:42 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 265888f..323aaf2 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,8 @@ Just like the BSD `which(1)` binary but using `node-which`. usage: node-which [-as] program ... ``` -We used to use `which` as the binaray's name, but it result in some issues later, -so we renamed it to `node-which`. You can learn more about this -[here](https://github.com/npm/node-which/commit/d65012c1af5d5424bef9fd7c22ad42613804dbab) +You can learn more about why the binary is `node-which` and not `which` +[here](https://github.com/npm/node-which/pull/67) ## OPTIONS