You must have npm or yarn installed.
npm install dop
# or
yarn add dop
Then you just have to require the library in your code.
const { createNode, createStore } = require('dop')
// or with ES6
import { createNode, createStore } from 'dop'
Using Unpkg
<script src="https://unpkg.com/dop"></script>
Using JSDeliver
<script src="https://cdn.jsdelivr.net/npm/dop/dist/dop.umd.js"></script>
The variable dop
will be available globally, which will give you access to the top-level exports.
const { createNode, createStore } = dop // global variable: window.dop
Patches →