1.1.2 • Published 7 years ago
replacer-content v1.1.2
Replacer of Content
Installation
npm i replacer-content
Usage
const replacerContent = require('replacer-content');
const replaced_files = replacerContent({
files: 'dir/folder/path/',
from: /foo/g,
to: 'bar',
ignore: ["**/node_modules/**"]
not_write: true
});
returned
[{
path: 'test.txt',
found: 'foo1',
line: 2
}]