소스 검색

Update README.md

DUODVK 7 년 전
부모
커밋
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**
 **Include the library**
 
 
+  from the cdn:
 ```html
 ```html
 <script src="http://cdn.peerjs.com/0.3/peer.js"></script>
 <script src="http://cdn.peerjs.com/0.3/peer.js"></script>
 ```
 ```
+  or from the npm:
+```js
+import Peer from 'peerjs';
+```
+
 
 
 **Create a Peer**  
 **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.
 Get a [free API key](http://peerjs.com/peerserver). Your id only needs to be unique to the namespace of your API key.