-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Browser
Bo edited this page Jun 5, 2022
·
1 revision
The easiest way is to just add GUN into your HTML:
<script src="https://cdn.jsdelivr.net/npm/gun/gun.js"></script>
<script>
gun = GUN(); // your code here
</script>
If you are using Webpack or other build tools, first follow the npm install, then add this to your browser code:
const GUN = require('gun/gun');
Same as with require
, but using the latest ES6 syntax:
import GUN from "https://cdn.skypack.dev/gun";