replacecontent
v1.0.9
Published
- rename files content in current directory - support regular expression
Downloads
2
Readme
description
- rename files content in current directory
- support regular expression
install
npm install replacecontent -gtwo usages
- change
beforetoafterof the files in current directory
Passing parameters through the command line
replacecontent "before" "after"- change
beforeto ``
replacecontent "before"- change
some-aaa-bbb-exttosome-extof 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/"