node-which
node-which copied to clipboard
Like which(1) unix command. Find the first instance of an executable in the PATH.
# What / Why Generally, the POSIX form `command -v` is preferable to `which` for the type of things this package does (`which` is not part of POSIX). Debian has...
Somewhat self-explanatory, but this option exists for the which.sync and not which. It'd be nice to have it for both, and there doesn't seem to be anything inherently incompatible with...
[String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated so we replace it with [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) which works similarily but isn't deprecated. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't...
Checks for both upper-case and lower-case file extensions. This is to support case-sensitive directories on Windows. Mixed-case file extensions still won't work, but those are rare enough that I don't...
Modernize the example to be easier to read and understand.
OS: Linux Mint 17 Qiana (kernel: 3.13.0-24-generic) Node version: 6.11.0 npm version: 5.2.0 When I run `npm i --save which`, I get: ``` npm WARN [email protected] No description npm WARN...
I am trying to get the path to `Rscript` which runs R scripts from the command line using which function. I packaged the app using electron-packager (v15.2.0) in macOS Catalina...
# What / Why The promise support introduced in 2.0.1 has a side-effect on the callback interface: the callback becomes part of the promise chain. If the callback throws, an...
I am on macOS Sierra, running node 7.6.0 (installed via nvm). I find that when I run `which` (this node module), I get the following error: ``` module.js:472 throw err;...
Windows now features per-directory case-sensitivity. This is explained here: https://blogs.msdn.microsoft.com/commandline/2018/02/28/per-directory-case-sensitivity-and-wsl/ A directory created in the Windows Subsystem for Linux will be case-sensitive by default. This library will read the `PathExt`...