Skip to content

v0.3.0

Choose a tag to compare

@s0ph1e s0ph1e released this 05 Aug 19:55
· 407 commits to master since this release
  • 69ab9eb - refactor
  • 9636962 - improve detection of duplicated urls
  • b2d2bed - improve recognizing of resource type
  • remove log from options
  • cover with tests

Breaking changes

  • filename returned by scrape was changed - now it contains relative to directory path
var options = {
  urls: 'http://example.com',
  directory: '/path/to/save'
};
scrape(options).then(console.log); 
// earlier: [ { url: 'http://example.com', filename: '/path/to/save/index.html' } ];
// now:  [ { url: 'http://example.com', filename: 'index.html' } ];