https://github.com/dominique-mueller/exec-bin
Run any binary files / executables within your npm scripts.
https://github.com/dominique-mueller/exec-bin
bin binary exe executable execute run spawn
Last synced: 26 days ago
JSON representation
Run any binary files / executables within your npm scripts.
- Host: GitHub
- URL: https://github.com/dominique-mueller/exec-bin
- Owner: dominique-mueller
- License: mit
- Created: 2021-04-13T21:49:08.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-07T23:54:41.000Z (over 2 years ago)
- Last Synced: 2024-10-12T08:23:57.235Z (6 months ago)
- Topics: bin, binary, exe, executable, execute, run, spawn
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/exec-bin
- Size: 162 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - dominique-mueller/exec-bin - Run any binary files / executables within your npm scripts. (JavaScript)
README
# exec-bin
**Run any binary files / executables within your npm scripts.**
## What it does
Running binary files / executables within npm scripts works if it's either part of an installed package (`node_modules/.bin`) or globally
installed. A binary that exists someplace else, e.g. in the project root, cannot easily be executed.**exec-bin** is here to help! It's a (very!) small Node.js script that you can use to run binary files / executables, with all parameters
being forwarded automatically. Fantastic!
## How to install
You can get the **exec-bin** via **npm** by adding it as a new _devDependency_ to your `package.json` file and running
`npm install`. Alternatively, run the following command:```bash
npm install exec-bin --save-dev
```### Requirements
- **exec-bin** requires **NodeJS 12** (or higher) to be installed
## How to use
Use **exec-bin** within your `package.json` scripts. For example:
```json
{
"scripts": {
"build": "exec-bin path/to/my/binary --first-parameter=foobar --second-boolean-parameter"
}
}
```