Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
grunt-scss-image-helpers
Advanced tools
Creates variables for Compass-like image helpers for url, width and height of images.
Grunt tasks to replace Compass image dimension helpers. It is recommended to run this task with watch task on image folder only.
Type: String
Default: ''
Path to image folder. All image names are created relatively to this folder.
Type: String
Default: grunt-images
Prefix for SCSS variables. These variables are created: $grunt-images-names
, $grunt-images-widths
, $grunt-images-heights
, $grunt-images-base64
and $grunt-images-relative-path
.
Type: Boolean
Default: false
If set to true
, task generates file names with timestamps to invalidate browser cache.
Type: String
Default: ''
All image paths in css are prefixed with this path. For example path ../img/
and image foo.png
become ../img/foo.png
.
Type: Integer
Default: 10240
Maximum file size for base64 encoding. Images bigger than that won't be encoded.
grunt.initConfig({
scss_images: {
dist: {
options: {
imageRoot: 'assets/img/',
prefix: 'grunt-images',
antiCache: true,
relativePath: '../img/',
size: 4096
},
files: {
'assets/scss/_images.scss': ['assets/img/*.png']
}
}
}
});
grunt.loadNpmTasks('grunt-scss-image-helpers');
grunt.registerTask('default', ['scss_images']);
MIT License • © Daniel Cirmaciu
FAQs
Creates variables for Compass-like image helpers for url, width and height of images.
The npm package grunt-scss-image-helpers receives a total of 0 weekly downloads. As such, grunt-scss-image-helpers popularity was classified as not popular.
We found that grunt-scss-image-helpers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.