summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md12
-rw-r--r--demo.html10
2 files changed, 16 insertions, 6 deletions
diff --git a/README.md b/README.md
index 0116fbe..ec02758 100644
--- a/README.md
+++ b/README.md
@@ -9,16 +9,22 @@ Readmore.js is tested with—and supported on—all versions of jQuery greater t
## Install
-Install Readmore.js with Bower:
+Install Readmore.js with npm:
```
-$ bower install readmore
+$ npm install readmore-js
```
Then include it in your HTML:
```html
-<script src="/bower_components/readmore/readmore.min.js"></script>
+<script src="/node_modules/readmore-js/readmore.min.js"></script>
+```
+
+Or, using Webpack or Browserify
+
+```javascript
+require('readmore-js');
```
diff --git a/demo.html b/demo.html
index f09a382..152d317 100644
--- a/demo.html
+++ b/demo.html
@@ -41,13 +41,17 @@
<h2 id="install">Install</h2>
- <p>Install Readmore.js with Bower:</p>
+ <p>Install Readmore.js with npm:</p>
- <pre><code>$ bower install readmore</code></pre>
+ <pre><code>$ npm install readmore-js</code></pre>
<p>Then include it in your HTML:</p>
- <pre><code class="html">&lt;script src=&quot;/bower_components/readmore/readmore.min.js&quot;&gt;&lt;/script&gt;</code></pre>
+ <pre><code class="html">&lt;script src=&quot;/node_modules/readmore-js/readmore.min.js&quot;&gt;&lt;/script&gt;</code></pre>
+
+ <p>Or, using Webpack or Browserify:</p>
+
+ <pre><code class="javascript">require('readmore-js');</code></pre>
<h2 id="use">Use</h2>