Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i my-ip-ui

Downloadsweekly downloads

0

version

1.0.7

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability