Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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.

Keywords

none

Install

npm i upstage

DownloadsWeekly Downloads

0

Version

0.0.4

License

none

Last publish

Collaborators

  • avatar