mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Add section on installing from npm.
This commit is contained in:
parent
c83d4ce46a
commit
e2589bdf6c
11
README.md
11
README.md
@ -14,6 +14,17 @@ In your `head` tag, include the following code:
|
|||||||
<script type="text/javascript" src="dat.gui.min.js"></script>
|
<script type="text/javascript" src="dat.gui.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Installing from npm
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install --save dat.gui
|
||||||
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
const dat = require('dat.gui').default;
|
||||||
|
const gui = new dat.GUI();
|
||||||
|
```
|
||||||
|
|
||||||
## Directory Contents
|
## Directory Contents
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user