svgo
Version:
Nodejs-based tool for optimizing SVG vector graphics files
19 lines (16 loc) • 403 B
JavaScript
/**
* Remove comments.
*
* @example
* <!-- Generator: Adobe Illustrator 15.0.0, SVG Export
* Plug-In . SVG Version: 6.00 Build 0) -->
*
* @param {Object} item current iteration item
* @param {Object} params plugin params
* @return {Boolean} if false, item will be filtered out
*
* @author Kir Belevich
*/
exports.removeComments = function(item, params) {
return !item.isComment();
};