upstage

0.0.4 • Public • Published

Upstage

Utility to crawl an entry URL and produce a static copy of the site.

Install

npm install upstage

Example

The example below will crawl google.com and save each html file and all of the assets that are associated with the host.

var upstage = require('upstage');

var GOOGLE = upstage.create({
    entryurl: 'http://google.com',
    name: 'google',
    stageroot: './'
  }, function (err,site) {
    if (err) {
      console.log("ERROR creating upstage site");
      console.log(err);
      return false;
    }   

    site.start(function (err,data) {
        console.log("CALLBACK");
      }); 

  }); 

Comments

It's slow.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i upstage

    Weekly Downloads

    5

    Version

    0.0.4

    License

    BSD

    Last publish

    Collaborators

    • jaw187