DUODVK 7 жил өмнө
parent
commit
4109bee938
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -9,9 +9,15 @@ 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>
 ```
+  or from the npm:
+```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.