Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 379 Bytes

File metadata and controls

15 lines (12 loc) · 379 Bytes

RecursiveReplace

Looks for every file in a specified directory and all subdirectories, and replaces a set of strings with another set of strings.

How To Use

const replacer = require("./Replacer");
// Every instance of apple turns into duck
// Every instance orange turns into dog
replacer("./TestData", {
    "apple": "duck",
    "orange": "dog"
});