Coder Social home page Coder Social logo

dominique-mueller / exec-bin Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 166 KB

Run any binary files / executables within your npm scripts.

Home Page: https://www.npmjs.com/package/exec-bin

License: MIT License

JavaScript 100.00%
execute spawn run bin binary executable exe

exec-bin's Introduction

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:

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:

{
  "scripts": {
    "build": "exec-bin path/to/my/binary --first-parameter=foobar --second-boolean-parameter"
  }
}

exec-bin's People

Contributors

dominique-mueller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

h-enk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.