We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0113977 commit 33dfe50Copy full SHA for 33dfe50
README.md
@@ -29,6 +29,18 @@ const options = {
29
};
30
```
31
32
+### Asynchronous replacement with `async`/`await`
33
+
34
+```js
35
+try {
36
+ const changes = await replace(options)
37
+ console.log('Modified files:', changes.join(', '));
38
+}
39
+catch (error) {
40
+ console.error('Error occurred:', error);
41
42
+```
43
44
### Asynchronous replacement with promises
45
46
```js
0 commit comments