compress-args
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i compress-args

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.07 kB

Total Files

4

Last publish

Collaborators

  • vincentbailly