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.
Features
- Get the current package's binary path
- 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
- API
- Examples
Categories
Package ManagersLicense
Apache License V2.0Follow get-bin-path
Other Useful Business Software
Build innovative business apps powered by process automation
Manage your business as a unified system of interacting processes. Use BPMN 2.0 for low-code process modeling by business people. Follow your strategic goals with process architecture that always corresponds to the structure of an actual business.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of get-bin-path!