winslow
v1.2.2
Published
Easily download a list of files.
Downloads
7
Readme
Winslow
Winslow is an easy way to download a list of files into a folder of your choosing. It is minimal in its feature set, but also simple to use. It was originally created to ease creation of media ripping bots. Named after the Power Stone character Jack Winslow.
Usage
It's simple.
const winslow = require('winslow');
let results = await winslow(listOfLinks, folderName);
The first argument should an array of the files you want to download, as complete URLs. The second should be a folder you want those files in, it will be created if it doesn't exist. Any files that already exist locally will be skipped. You can optionally pass a third boolean argument of true
to turn on some basic verbosity. This will cause a .
to be printed for every file downloaded, a x
for each that fails for any reason, and a -
for any that are skipped on account of being present in the folder already.
The results object returned is a simple object with three fields, downloaded
, failed
, and skipped
.