You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-14
Original file line number
Diff line number
Diff line change
@@ -1254,28 +1254,26 @@ function world(a) {
1254
1254
1255
1255
</details>
1256
1256
1257
-
<details><summary>convert <code>esm</code> to <code>commonjs</code> (disabled)</summary>
1258
-
1259
-
```diff
1260
-
-import hello from 'world';
1261
-
+const hello = require('world');
1262
-
```
1263
-
1264
-
</details>
1265
-
<details><summary>convert <code>commonjs</code> to <code>esm</code> (disabled)</summary>
1257
+
<details><summary>convert <code>replace</code> to <code>replaceAll</code> (<ahref=https://github.com/tc39/proposal-string-replaceall>stage-4</a>)</summary>
1266
1258
1267
1259
```diff
1268
-
-const hello = require('world');
1269
-
+import hello from 'world';
1260
+
-'hello'.replace(/hello/g, 'world');
1261
+
+'hello'.replaceAll('hello', 'world');
1270
1262
```
1271
1263
1272
1264
</details>
1273
1265
1274
-
<details><summary>convert <code>replace</code> to <code>replaceAll</code> (<ahref=https://github.com/tc39/proposal-string-replaceall>stage-4</a>)</summary>
<details><summary>convert <code>esm</code> to <code>commonjs</code> (disabled)</summary>
1742
+
1743
+
```diff
1744
+
-import hello from 'world';
1745
+
+const hello = require('world');
1746
+
```
1747
+
1748
+
</details>
1749
+
1750
+
<details><summary>convert <code>commonjs</code> to <code>esm</code> (disabled)</summary>
1751
+
1752
+
```diff
1753
+
-const hello = require('world');
1754
+
+import hello from 'world';
1755
+
```
1756
+
1757
+
</details>
1758
+
1743
1759
<details><summary>convert <code>fs.promises</code> to <code>fs/promises</code> for <ahref=https://nodejs.org/dist/latest-v15.x/docs/api/fs.html#fs_fs_promises_api>node.js</a></summary>
1744
1760
1745
1761
```diff
@@ -1904,6 +1920,7 @@ It has a lot plugins divided by groups:
0 commit comments