
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
grunt-contrib-analyze-css
Advanced tools
Grunt task that analyze your css with analyze-css and compare the results to a user-defined benchmark
Grunt task that analyze your css with analyze-css and compare the results to a user-defined benchmark.
This plugin requires Grunt ^0.4.0
npm i grunt-contrib-analyze-css --save-dev
Run this task with the grunt analyzecss
command.
grunt.initConfig({
analyzecss: {
prod: {
sources: ['stylesheet.css']
},
options: {
outputMetrics: 'error',
thresholds: {
}
}
}
});
These are the possible config values. The format is optionName: 'defaultValue'
.
Defines the encoding when reading css files.
Possible values:
All supported values for
fs.readFile
can be used
The analyzecss options. This object is directly passed on to analyzecss api.
Possible values:
See analyze-css readme file.
The score at which warning begins. Any metric that is below this mark will issue a warning.
Possible values:
0...1
The score at which errors are thrown. Any metric that is below this mark will issue an error.
Possible values:
0...1
The length for default string padding in the results
Possible values:
Integer
This options controls if and how metrics are shown to the screen. By default only the global score of each css document is shown. If set to true, ever metric score will show up. You can limit the output to set a cap on output by using 'warn' or 'error'.
Possible values:
true, false, 'warn', 'error'
This options will output duplicated selectors in stdout.
Possible values:
true, false
Prevents the grunt task to be halted if this task failed.
Possible values:
true, false
This object should contains all the maximum values allowed for each metric. The results of your css files will be compared to those maximum values and issue warning and errors if they surpass warn/error levels.
If you want to ignore certain metric, be sure to set them to null
Possible values:
See analyze-css readme file or the defaults in the source code.
Made with love in Montréal by http://deuxhuithuit.com
Licensed under the MIT License: http://deuxhuithuit.mit-license.org
FAQs
Grunt task that analyze your css with analyze-css and compare the results to a user-defined benchmark
The npm package grunt-contrib-analyze-css receives a total of 0 weekly downloads. As such, grunt-contrib-analyze-css popularity was classified as not popular.
We found that grunt-contrib-analyze-css 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.