A module that archives any page to web.archive.org
Based on the code from https://www.reddit.com/r/node/comments/5j3sb7/using_wayback_machines_wayback_save_function/, but modified to work with pages that are already saved and some other stuff added.
Installing
npm install waybackarchive
Usage
let archive = ;let url = "https://www.npmjs.com/package/waybackarchive";
You can only save the same page once every hour or so, so be aware of that when using this module.
Saves the page using the request
module.
Uses the wayback-machine
module to check at each interval if the page has been saved.