twitter-rss-server
Advanced tools
+12
-2
@@ -8,2 +8,8 @@ #!/usr/bin/env node | ||
| var port = 6000 | ||
| var argv = require('minimist')(process.argv.slice(2)); | ||
| port = argv['p'] || argv['port'] || 6000 | ||
| var conf = new configstore('twitter-rss-server') | ||
@@ -16,3 +22,3 @@ | ||
| http.createServer(function (req, res) { | ||
| var server = http.createServer(function (req, res) { | ||
| var user = req.url.substring(1) | ||
@@ -27,3 +33,7 @@ | ||
| }) | ||
| }).listen(6000) | ||
| }) | ||
| server.listen(port, function () { | ||
| console.log('http://localhost:' + port) | ||
| }) | ||
| } | ||
@@ -30,0 +40,0 @@ |
+2
-1
| { | ||
| "name": "twitter-rss-server", | ||
| "version": "0.3.1", | ||
| "version": "0.4.1", | ||
| "description": "tiny server that hosts Twitter timelines as RSS feeds", | ||
@@ -25,2 +25,3 @@ "bin": { | ||
| "configstore": "^1.2.1", | ||
| "minimist": "^1.2.0", | ||
| "prompt": "^0.2.14", | ||
@@ -27,0 +28,0 @@ "rss-twitter": "0.0.2" |
+1
-1
@@ -27,3 +27,3 @@ # twitter-rss-server | ||
| Use the `twitter-rss-server` command to run. It defaults to port 6000 on your | ||
| local machine. | ||
| local machine, but you can use `-p` or `--port` to set it to something else. | ||
@@ -30,0 +30,0 @@ ``` |
4770
6.45%56
12%4
33.33%+ Added