mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-14 05:55:53 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5830c3840 | ||
|
|
06b85ad0aa | ||
|
|
943a7dc35b |
@@ -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
2
index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
module.exports.client = require('./client');
|
||||
module.exports.server = require('./server');
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
4
test.js
4
test.js
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user