Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
broccoli-image-min
Advanced tools
Broccoli plugin for minifying .jpg, .png, .svg and .gif with imagemin
Broccoli plugin for minifying .jpg, .png, .svg and .gif with imagemin.
const BroccoliImageMin = require('broccoli-image-min')
const minified = new BroccoliImageMin('app', {
include: ['images/**/*.(jpg|png)']
})
module.exports = minified
const BroccoliImageMin = require('broccoli-image-min')
const minified = new BroccoliImageMin('app/images', {
include: ['**/*.(jpg|png)']
})
module.exports = minified
new BroccoliImageMin(inputNodes, options)
inputNodes
: A single input node, an array of input nodes or a string pointing to a folder.
options
:
include
: An array of Regexp patternsThe returned output node contains minified images matching the options.include
pattern with their directory structure preserved.
Just a quick overview from Globbies documentation
*
matches any number of characters, but not /
?
matches a single character, but not /
**
matches any number of characters, including /
, as long as it's the only thing in a path part{}
allows for a comma-separated list of "or" expressions!
at the beginning of a pattern will negate the matchVarious patterns and expected matches.
This project is distributed under the MIT license.
FAQs
Broccoli plugin for minifying .jpg, .png, .svg and .gif with imagemin
The npm package broccoli-image-min receives a total of 7 weekly downloads. As such, broccoli-image-min popularity was classified as not popular.
We found that broccoli-image-min demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.