nitro-webshot

1.0.7 • Public • Published

nitro-webshot

The goal of this proyect is to provide a way to render current page in server side to avoid cross-browser issues.

Installation

npm install nitro-webshot --save

Quick usage

require('nitro-webshot').server(3000, '0.0.0.0');

Testing in Browser

// copy and paste following into your browser console:
 
(function (d) {
  var s=d.createElement('script');
  s.src='http://0.0.0.0:3000/nitro-webshot.js';
  d.head.appendChild(s)
})(document);
 
// once loaded execute following:
 
var request = nitroWebshot.render();

TODO

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i nitro-webshot

    Weekly Downloads

    0

    Version

    1.0.7

    License

    ISC

    Last publish

    Collaborators

    • jgermade