my-ip-ui
v1.0.7
Published
MY IP UI - is a UI tool built for easy opening development url on any mobile device
Downloads
11
Maintainers
Readme
MY IP UI
How it works
MY IP UI was built on top of EXPRESS so if you would like to use it, your server should use express js.
- MY IP - gets current IP address.
- QR-IMAGE - generates QR-code SVG based on current IP address.
- UI WRAPPER - wraps QR-code SVG to custom UI.
- INJECT-HTML - injects UI WRAPPER to every page served by http server.
Usage
var express = require('express');
var myipui = require('my-ip-ui');
var server = express();
var port = 3000;
server.use(myipui({ port: port }));
server.use(express.static('./dest'));
server.listen(port, function(res, req){
console.log('Server started!');
});