0.1.4 • Published 3 years ago

binjumper v0.1.4

Weekly downloads
46,107
License
MIT
Repository
github
Last release
3 years ago

binjumper

A library for creating a jumper file to start an executable with extra arguments - symlinks with arguments

Install

yarn add binjumper

Why

Sometimes you need to create an executable symlink with additional arguments so you create a .cmd file that runs the executable with the additional arguments. This works perfectly fine for running the thing, but as soon as you need to cancel the script (ctrl + C) you'll start getting Terminate batch job (Y/N)? prompts from cmd. These are impossible to disable so when you have more of these spawning eachother you'll get something like this:

$ yarn command-using-npm-binaries
^C
Terminate batch job (Y/N)? y
Terminate batch job (Y/N)? y
Terminate batch job (Y/N)? y
Terminate batch job (Y/N)? y
$

This library works around that issue using a native executable (.exe) to perform the spawn on Windows, Unix doesn't have this problem so there a simple bash script is used.

Example

See the examples directory

License

This project is licensed under the terms of the MIT license.

0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago