Find the path to an executable, similar to typing which in your terminal. Reads the PATH environment variable unless overridden with options.PATH.
Bun.which function | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/whichFwhich BuildDocsReferenceGuidesBlogDiscord /Bun/whichFwhich whichfunction which(command: string,options?: WhichOptions): null | string; @param command @param options Referenced typesinterface WhichOptionscwd?: string PATH?: string
Search the reference...
/
function
The name of the executable or script to find
Options for the search
When given a relative path, use this path to join it.
Overrides the PATH environment variable
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Bun.which function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function bun.which | Bun