From e2589bdf6ce37910e9a3bff3040cc0dc822fe2d0 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Sat, 13 Jan 2018 16:39:28 -0800 Subject: [PATCH] Add section on installing from npm. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 09b09da..9a0854a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,17 @@ In your `head` tag, include the following code: ``` +## Installing from npm + +``` +$ npm install --save dat.gui +``` + +```js +const dat = require('dat.gui').default; +const gui = new dat.GUI(); +``` + ## Directory Contents ``` @@ -49,4 +60,4 @@ The following libraries / open-source projects were used in the development of d * [webpack](https://webpack.github.io/) * [Sass](http://sass-lang.com/) * [node.js](http://nodejs.org/) - * [QUnit](https://github.com/jquery/qunit) / [jquery](http://jquery.com/) \ No newline at end of file + * [QUnit](https://github.com/jquery/qunit) / [jquery](http://jquery.com/)