1.0.1 • Published 2 years ago
chset v1.0.1
chSet
简单快速替换目录或多个文件中的一些配置项
Installation
# Using npm, installing to local project
npm i --save chset
# Using yarn
yarn add chset
Basic usage
const options = {
src: ['./*.js'],
test: /FOO|FOO/g,
ignore:['*.html'],
transform: (text) => text.toUpperCase()
};
chSet(options);
const options = {
src: ['./lib', './test'],
test: /FOO|FOO/g,
ignore:['*.html'],
transform: (text) => text.toUpperCase()
};
chSet(options);