0.3.0 • Published 3 years ago
delcommentplugin v0.3.0
DELCOMMENTPLUGIN
删除注释的插件
下载
$ npm install delcommentplugin
使用
const DelCommentPlugin = require('delcommentplugin');
const content = `
/* math add function */
function add(num1, num2) {
return num1 + num2;
}
`;
const delCommentPlugin = new DelCommentPlugin(content);
const withoutComment = delCommentPlugin.apply();