Permalink
Browse files

expose client and server api

  • Loading branch information...
1 parent 943a7dc commit 06b85ad0aa381268b4d45f9f4550560ba85e6d77 @defunctzombie defunctzombie committed Nov 6, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −0 index.js
  2. +2 −1 package.json
  3. +2 −2 test.js
View
@@ -0,0 +1,2 @@
+module.exports.client = require('./client');
+module.exports.server = require('./server');
View
@@ -25,5 +25,6 @@
},
"bin": {
"lt": "./bin/client"
- }
+ },
+ "main": "./index.js"
}
View
@@ -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() {

0 comments on commit 06b85ad

Please sign in to comment.