From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/which/README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node_modules/which/README.md') diff --git a/node_modules/which/README.md b/node_modules/which/README.md index 7f679d595..8c0b0cbf7 100644 --- a/node_modules/which/README.md +++ b/node_modules/which/README.md @@ -21,6 +21,9 @@ which('node', function (er, resolvedPath) { // throws if not found var resolved = which.sync('node') +// if nothrow option is used, returns null if not found +resolved = which.sync('node', {nothrow: true}) + // Pass options to override the PATH and PATHEXT environment vars. which('node', { path: someOtherPath }, function (er, resolved) { if (er) -- cgit v1.2.3