1.0.1 • Published 3 years ago

compress-args v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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}"