
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
brace-compression
Advanced tools
Reverse brace expansion (like sh/bash)
var compress = require('brace-compression');
var data = [
'foo-1',
'foo-2',
'foo-3'
];
var s = compress(data).join(' ');
console.log(s);
// => "foo-{1..3}"
The input array should be sorted before being passed to compress
$ cat file.txt
foo-1
foo-2
foo-3
$ cat file.txt | brace-compress
foo-{1..3}
npm install [-g] brace-compression
MIT License
FAQs
Reverse brace expansion (like sh/bash)
The npm package brace-compression receives a total of 6 weekly downloads. As such, brace-compression popularity was classified as not popular.
We found that brace-compression demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.