Bläddra i källkod

Merge pull request #406 from dmitrykurmanov/patch-1

Update README.md
Jairo Caro-Accino Viciana 7 år sedan
förälder
incheckning
8bfacf53ff
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -9,9 +9,17 @@ PeerJS provides a complete, configurable, and easy-to-use peer-to-peer API built
 
 **Include the library**
 
+  from the cdn:
 ```html
 <script src="http://cdn.peerjs.com/0.3/peer.js"></script>
 ```
+  with modules:
+`npm install peerjs` or `yarn add peerjs`
+    and the usage:
+  ```js
+  import Peer from 'peerjs';
+  ```
+
 
 **Create a Peer**  
 Get a [free API key](http://peerjs.com/peerserver). Your id only needs to be unique to the namespace of your API key.