Socket
Book a DemoInstallSign in
Socket

stop

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stop

Make a dynamic website static by downloading it.

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 27 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts