
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
mt-cache-control
Advanced tools
control the cache of assets by appending md5 hash to asset url
This plugin requires Grunt ~0.4.1
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-cache --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-cache');
In your project's Gruntfile, add a section named cache
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
cache: {
js: {
options: {
},
assetUrl:'demo/js/hello.js',
files: {
'tmp': ['demo/index.html'],
},
},
},
});
In this example, we have index.html which contains hello.js and hello.css.
In Gruntfile.js, write as below, then grunt
, we can get the index.html which has assets url with md5.
assetUrl
is the css or js file path
files
is the file which contains the assets(usually is html file)
Notice to write the correct path.
grunt.initConfig({
cache: {
js: {
options: {
},
assetUrl:'demo/js/hello.js',
files: {
'tmp': ['demo/index.html'],
},
},
css: {
options: {
},
assetUrl:'demo/css/hello.css',
files: {
'tmp': ['demo/index.html'],
},
},
},
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)
FAQs
control the cache of assets by appending md5 hash to asset url
The npm package mt-cache-control receives a total of 0 weekly downloads. As such, mt-cache-control popularity was classified as not popular.
We found that mt-cache-control 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
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.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.