From b4e8e48abdae8a7751d68266cbbf8550a50fad53 Mon Sep 17 00:00:00 2001 From: Pontus Persson Date: Fri, 8 Dec 2017 08:28:59 +0100 Subject: [PATCH 1/2] NPMify --- package.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..73107b6 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "WebRTC-Example", + "version": "1.0.0", + "description": "An 'as simple as it gets' WebRTC example.", + "main": "index.js", + "scripts": { + "start": "node server/server.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/shanet/WebRTC-Example.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/shanet/WebRTC-Example/issues" + }, + "homepage": "https://github.com/shanet/WebRTC-Example#readme", + "dependencies": { + "ws": "^3.3.2" + } +} From 769597e9aa2d446ae685232cad80d9175ba1123c Mon Sep 17 00:00:00 2001 From: shane tully Date: Sun, 7 Jan 2018 15:33:08 -0800 Subject: [PATCH 2/2] update package.json --- README.md | 4 ++-- package-lock.json | 33 +++++++++++++++++++++++++++++++++ package.json | 6 +++--- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 package-lock.json diff --git a/README.md b/README.md index a4f5771..0cdfe4c 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Note: This repo is kept updated. The general ideas are there, but the above blog The signaling server uses Node.js and `ws` and can be started as such: ``` -$ npm install ws -$ node server/server.js +$ npm install +$ npm start ``` With the server running, open a recent version of Firefox or Chrome and visit `https://localhost:8443`. Note the HTTPS! There is no redirect from HTTP to HTTPS! diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f57ff64 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,33 @@ +{ + "name": "WebRTC-Example", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "ultron": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" + }, + "ws": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", + "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "requires": { + "async-limiter": "1.0.0", + "safe-buffer": "5.1.1", + "ultron": "1.1.1" + } + } + } +} diff --git a/package.json b/package.json index 73107b6..edd96e1 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,9 @@ "type": "git", "url": "git+https://github.com/shanet/WebRTC-Example.git" }, - "keywords": [], - "author": "", - "license": "ISC", + "keywords": ["webrtc"], + "author": "shane tully", + "license": "MIT", "bugs": { "url": "https://github.com/shanet/WebRTC-Example/issues" },