3.1.0 • Published 8 years ago

stop v3.1.0

Weekly downloads
300
License
MIT
Repository
github
Last release
8 years ago

Stop

Make a dynamic website static by downloading it.

Installation

$ npm install stop

Example Usage

var url = require('url');
var stop = require('stop');

stop.getWebsiteStream('http://example.com', {
  filter: function (currentURL) {
    return url.parse(currentURL).hostname === 'example.com';
  },
  parallel: 1
})
.syphon(stop.addFavicon())
.syphon(stop.addManifest('/app.manifest', {addLinks: true}))
.syphon(stop.minifyJS())
.syphon(stop.minifyCSS({deadCode: true}))
.syphon(stop.log())
.syphon(stop.checkStatusCodes([200]))
.syphon(stop.writeFileSystem(__dirname + '/output'))
.wait().done(function () {
  console.log('success');
});

License

MIT

If you find it useful, a payment via gittip would be appreciated.

3.1.0

8 years ago

3.0.1

10 years ago

3.0.0

10 years ago

3.0.0-rc1

10 years ago

2.1.2

11 years ago

2.1.1

11 years ago

2.1.0

11 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago

0.0.0

11 years ago