Skip to content

Compress command line arguments by using curly-brackets.

Notifications You must be signed in to change notification settings

VincentBailly/compress-args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compress-args

Compress a list of command line arguments so we can reduce long commands to below the 8191 char limit on Windows. The compression assumes that the tools being called is capable of doing curly-braces expansion. The algorithm is not producing the optimal compression, but one that is simple to implement.

Usage

const { compressArgs } = require("compress-args");

compressArgs(["foo", "foo-bar", "baz"]);
// returns "{foo{,-bar},baz}"

About

Compress command line arguments by using curly-brackets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published