3 Commits

Author SHA1 Message Date
Roman Shtylman
b5830c3840 0.0.3 2012-11-06 10:55:24 -05:00
Roman Shtylman
06b85ad0aa expose client and server api 2012-11-06 10:55:08 -05:00
Roman Shtylman
943a7dc35b typo 2012-11-05 16:05:32 -05:00
4 changed files with 9 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.
Great for working with browser testing tools like browserling or external api callback services like twilio which require a public url for callbacks!
Great for working with browser testing tools like browserling or external api callback services like twilio which require a public url for callbacks.
## installation ##
@@ -12,7 +12,7 @@ npm install -g localtunnel
## use ##
Super East! Assuming your local server is running on port 8000, just use the ```lt``` command to start the tunnel.
Super Easy! Assuming your local server is running on port 8000, just use the ```lt``` command to start the tunnel.
```
lt --port 8000

2
index.js Normal file
View File

@@ -0,0 +1,2 @@
module.exports.client = require('./client');
module.exports.server = require('./server');

View File

@@ -2,7 +2,7 @@
"author": "Roman Shtylman <shtylman@gmail.com>",
"name": "localtunnel",
"description": "expose localhost to the world",
"version": "0.0.2",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "git://github.com/shtylman/localtunnel.git"
@@ -25,5 +25,6 @@
},
"bin": {
"lt": "./bin/client"
}
},
"main": "./index.js"
}

View File

@@ -2,8 +2,8 @@ var http = require('http');
var url = require('url');
var assert = require('assert');
var localtunnel_server = require('./server');
var localtunnel_client = require('./client');
var localtunnel_server = require('./').server;
var localtunnel_client = require('./').client;
test('setup localtunnel server', function(done) {
localtunnel_server.listen(3000, function() {