Skip to content

usablica/localr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localr

💻 Map localhost ports to localr.io

Install

Install using npm:

npm install localr -g

Getting Started

localr add 8080 webserver.localr.io

and then browse http://webserver.localr.io. Easy, isn't it?

API

var Localr = require('localr');

var localr = new Localr();

// connect test.localr.io to local port 9090
localr.add('test', 'http', '127.0.0.1', 9090);

localr.on('error', function (msg) {
  console.log('error', msg);
});

localr.listen();

Authors

Amir Mohammad Said
Afshin Mehrabani

License

MIT.

About

Map localhost ports to localr.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published