Browse Source

Update README.md

DUODVK 7 năm trước cách đây
mục cha
commit
4109bee938
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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.