Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-04-14 14:24:20 +0300
committerGitHub <noreply@github.com>2022-04-14 14:24:20 +0300
commita058cefe2963714fe2d1563e03efe3766fa61e69 (patch)
tree319ad420f474baefcefd27e59db22a96ae6c1a18 /doc
parente61b62b9d4a7a648496cc5d1539e1111bd2737e9 (diff)
doc: fix ESM JSON/data URL import example
PR-URL: https://github.com/nodejs/node/pull/42728 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/esm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index 90cca55946b..c0f7e5fe3f7 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -200,7 +200,7 @@ URLs being used is:
```js
import 'data:text/javascript,console.log("hello!");';
-import _ from 'data:application/json,"world!"';
+import _ from 'data:application/json,"world!"' assert { type: 'json' };
```
#### `node:` Imports