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 43042bd commit 4798b9dCopy full SHA for 4798b9d
README.md
@@ -78,22 +78,29 @@ specification](https://json5.github.io/json5-spec/).
78
npm install json5
79
```
80
81
-### CommonJS
+#### CommonJS
82
```js
83
const JSON5 = require('json5')
84
85
86
-### Modules
+#### Modules
87
88
import JSON5 from 'json5'
89
90
91
### Browsers
92
+#### UMD
93
```html
94
+<!-- This will create a global `JSON5` variable. -->
95
<script src="https://unpkg.com/json5@2/dist/index.min.js"></script>
96
97
-This will create a global `JSON5` variable.
98
99
+```html
100
+<script type="module">
101
+ import JSON5 from 'https://unpkg.com/json5@2/dist/index.min.mjs'
102
+</script>
103
+```
104
105
## API
106
The JSON5 API is compatible with the [JSON API].
0 commit comments