瀏覽代碼

Merge pull request #406 from dmitrykurmanov/patch-1

Update README.md
Jairo Caro-Accino Viciana 7 年之前
父節點
當前提交
8bfacf53ff
共有 1 個文件被更改,包括 8 次插入0 次删除
  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.