Download Area

Home > Package Managers

get-bin-path (free) Download Full | **UPDATE

Get the current package's binary path - get-bin-path

get-bin-path (free) Download Full | **UPDATE

Published Date: 2024-05-01

get-bin-path Free Download

Get-Bin-Path (free) Download Full **UPDATE: The latest version of Get-Bin-Path (free) is now available for download. This update includes several new features and improvements, including:

- Added support for Windows 10 - Improved performance when retrieving the path to executables - Fixed several bugs

get-bin-path: Get the current package's binary path (using the package.json bin field). This is useful when testing a package's binary. Using get-bin-path (as opposed to hard-coding the path to the binary). Validates that the package.json bin field is correctly setup. Decouples the binary path from the tests, which allows moving the file without rewriting the tests. This package is an ES module and must be loaded using an import or import() statement, not require(). Returns the current package's binary absolute path. When no package.json or binary can be found, undefined is returned instead.