mirror of
https://github.com/svg/svgo.git
synced 2025-07-15 05:01:48 +03:00
go!
This commit is contained in:
16
plugins/removeMetadata.js
Normal file
16
plugins/removeMetadata.js
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Remove <metadata>.
|
||||
*
|
||||
* http://www.w3.org/TR/SVG/metadata.html
|
||||
*
|
||||
* @param {Object} item current iteration item
|
||||
* @param {Object} params plugin params
|
||||
* @return {Boolean} if false, item will be filtered out
|
||||
*
|
||||
* @author Kir Belevich
|
||||
*/
|
||||
exports.removeMetadata = function(item, params) {
|
||||
|
||||
return !item.isElem('metadata');
|
||||
|
||||
};
|
Reference in New Issue
Block a user