my-ip-ui

1.0.7 • Public • Published

MY IP UI

MY IP UI - is a UI tool built for easy opening development url on any mobile device.

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!');
});
 

Package Sidebar

Install

npm i my-ip-ui

Weekly Downloads

0

Version

1.0.7

License

ISC

Last publish

Collaborators

  • admdh