Skip to content

Commit

Permalink
Set safe side options
Browse files Browse the repository at this point in the history
Even in the example, it is not safe to enable critically options like path ("."),  recursive("true"), silent("false"), because if somebody accidentally runs it, then it will update every file in that current path, and extremely hard to Undo the changes.
  • Loading branch information
drveresh authored Apr 28, 2020
1 parent 7526dbe commit 94a1725
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ var replace = require("replace");
replace({
regex: "foo",
replacement: "bar",
paths: ['.'],
recursive: true,
silent: true,
paths: ['./Test/'],
recursive: false,
silent: false,
});
```

Expand Down

0 comments on commit 94a1725

Please sign in to comment.