1.2.0 • Published 8 years ago

miaow-replace v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

miaow-replace

Miaow的字符替换工具

效果示例

/* baz.js */
if (__debug__) {
  console.log('debug');
}

/* 处理后 */
if (false) {
  console.log('debug');
}

参数说明

replace

Type:Array Default:[]

要替换的配置列表

每个成员都必须是包含testvalue属性的简单对象. testvalue是用来执行String.prototype.replace方法的两个参数, 具体可选类型可以参考MDN

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago