![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Brotli files compressor, now from 10 times faster! ⚡
npm i -g brotli-cli
npx brotli-cli ... (other params)
brotli-cli compress file1.txt file2.svg file3.js
Files will be created in the same directory, but with
.br
extension appended. Overwriting will occur without asking.
brotli-cli compress --glob "public/*.html"
Files will be created in the same directory, but with
.br
extension appended. Overwriting will occur without asking.
To do this, you can only specify one file to compress, and you have to add
-
at the end of the command.
brotli-cli compress index.html -
brotli-cli compress index.html - > compressed.html
Commands:
brotli-cli compress Compresses specified files
Options:
--help Show help [boolean]
--version Show version number [boolean]
-m, --mode Brotli compression mode [generic, text, font] [default: "generic"]
-q, --quality Brotli compression quality [0-11] [default: 11]
-t, --threads Use this many concurrent jobs [number of threads or `true` for threads=CPUs
amount] [default: true]
-l, --lgwin Brotli compression window size [0, 10-24] [default: 24]
-b, --bail Stop execution on first error [boolean] [default: true]
--add-extension, --br Add .br extension to compressed files [boolean] [default: true]
-g, --glob Use glob pattern when matching files [boolean] [default: false]
--glob-skip-br-extension, --skip-br Always skip .br extension when matching files [boolean] [default: true]
-v, --verbose Run with verbose logging [boolean] [default: false]
Examples:
brotli-cli compress -q 5 image.jpg Compress `image.jpg` file with generic compression level 5 and save to image.jpg.br
brotli-cli compress -q 5 -br false image.jpg Compress `image.jpg` file and overwrite it
brotli-cli compress -mode text index.html - Compress `index.html` file with text mode max compression (level 11) and print to stdout
brotli-cli compress --glob "images/*.jpg" Compress all jpg files from `images` directory, stop on first error.
brotli-cli compress --glob --bail false "images/*.jpg" Compress all jpg files from `images` directory, do not stop on first error (will still print errors to stderr and exit with error code).
Because node's zlib
can't work with streams (nor the previously used brotli
npm module) -
all the file contents to be compressed must be loaded into memory.
Usually this does not matter, but keep few things in mind:
buffer.constants.MAX_LENGTH
so this may vary)MIT
FAQs
Brotli files compressor, now from 10 times faster! ⚡
We found that brotli-cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.