
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
grunt-big-assets
Advanced tools
Analyzes a project's JS, attempting to highlight large dependencies that should be removed, replaced, or refactored.
Analyzes an AMD project's Javascript (using madge), generating a report of largest Javascript dependencies.
Dependencies are sorted in descending order by Uglified filesize.
This plugin requires Grunt ~0.4.2
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-big-assets --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-big-assets');
In your project's Gruntfile, add a section named big_assets
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
big_assets: {
options: {
base: 'public/javascripts' // base path to project Javascript (no trailing slash),
reportPath: 'target/grunt/big-assets.html' // path to output a report in HTML format (optional)
},
files: ['public/javascripts/**/*.js']
}
});
Type: String
Default value: ''
Base path to the project Javascript, relative to the Gruntfile.
Type: object
Default value:
{
format: 'amd',
findNestedDependencies: false,
requireConfigFile: ''
}
Configuration options to pass on to Madge (full list of options).
AMD module identifier prefix to filter the report with (by excluding display of Dependent Modules that don't match the prefix).
Type: String
Default value: undefined
Optional path to generate an HTML version of the big assets report.
filterPrefix
option
and madge
option for setting Madge configuration.FAQs
Analyzes a project's JS, attempting to highlight large dependencies that should be removed, replaced, or refactored.
We found that grunt-big-assets 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
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.