replacecontent
v1.0.9
Published
- rename files content in current directory - support regular expression
Downloads
3
Readme
description
- rename files content in current directory
- support regular expression
install
npm install replacecontent -g
two usages
- change
before
toafter
of the files in current directory
Passing parameters through the command line
replacecontent "before" "after"
- change
before
to ``
replacecontent "before"
- change
some-aaa-bbb-ext
tosome-ext
of the files in current directory
replacecontent "/-(.+?)-(.+?)/"
Passing parameters through configuration files
- Add a replace.json file in current directory
{
"before": "after"
}
2.Then execute command in current directory
replacecontent;
example
replacecontent "/\/\/#\ssourceMappingURL=.+.map/"