Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
grunt-md5vel
Advanced tools
Readme
Grunt plugin for generating MD5
filenames.
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-md5vel
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-md5vel');
Then specify what files you want to generate an md5 filename in your config:
grunt.initConfig({
md5vel: {
compile: {
files: [{
'dest/folder/': 'src/file'
}],
options: {
/** `prefix`, `suffix`, `hash`, `extension`, `template` accept `string`, `function` and `object`
* @type {String, Object, Function, void}
* Where object is keyed by the original value, such that the destinations file extension would become `new.dist.js` with the option `{ 'js': 'new.dist.js' }` for `script.js`
*/
prefix: '', // defaults to current basename of file,
hash: function(hash){
return hash.substr(0,8)
},
suffix: '',
extension: 'ext' || {
'js': 'my.js',
'css': 'our.css'
}
template: _.template(
"<%= _.filter([prefix, hash, suffix]).join(delimiter) %>" +
"<%= extension? '.':'' %><%= extension %>")
/**
* Called before determing the filename
* @param {Object} filename Contains filename compontents {
* prefix
* hash
* suffix
* extension
* template
* }
*/
beforeEach: function (filename, options){}
/**
* A callback after each file is written describing the change
* @param {Object} fileChange {
* newPath
* oldPath
* content
* }
*/
afterEach: function (fileChange) {},
/**
* A callback after all files are written with a summary of writes
* @param {[Object]} fileChanges [{newPath, oldPath, content}, …}]
*/
after: function (fileChanges) {}
}
}
}
});
FAQs
Generates md5 filenames.
The npm package grunt-md5vel receives a total of 1 weekly downloads. As such, grunt-md5vel popularity was classified as not popular.
We found that grunt-md5vel 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.