Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

binjumper

merceyz267.4kMIT0.1.4TypeScript support: included

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

unix, windows, native, binary, jumper, shortcut, symlink

readme

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.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.4 (2020-11-06)

Bug Fixes

0.1.3 (2020-10-15)

Bug Fixes

  • return correct exit code (cdf5ef7)

0.1.2 (2020-10-03)

Bug Fixes

  • explicitly disable elevation to administrator (bb27187)

0.1.1 (2020-09-27)

Features