1.0.9 • Published 3 years ago
replacecontent v1.0.9
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/"