mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-14 22:15:55 +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.
|
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 ##
|
## installation ##
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ npm install -g localtunnel
|
|||||||
|
|
||||||
## use ##
|
## 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
|
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>",
|
"author": "Roman Shtylman <shtylman@gmail.com>",
|
||||||
"name": "localtunnel",
|
"name": "localtunnel",
|
||||||
"description": "expose localhost to the world",
|
"description": "expose localhost to the world",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/shtylman/localtunnel.git"
|
"url": "git://github.com/shtylman/localtunnel.git"
|
||||||
@@ -25,5 +25,6 @@
|
|||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"lt": "./bin/client"
|
"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 url = require('url');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
var localtunnel_server = require('./server');
|
var localtunnel_server = require('./').server;
|
||||||
var localtunnel_client = require('./client');
|
var localtunnel_client = require('./').client;
|
||||||
|
|
||||||
test('setup localtunnel server', function(done) {
|
test('setup localtunnel server', function(done) {
|
||||||
localtunnel_server.listen(3000, function() {
|
localtunnel_server.listen(3000, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user