opichals / wget.js

Node.js wget-like alternative

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wget.js

Node.js wget-like alternative

Command line

Usage: wget.js [options] <url>

Options:
  --np, --no-parent       don't ascend to the parent directory  [boolean] [default: false]
  -r, --recursive         specify recursive download  [boolean] [default: false]
  -P, --directory-prefix  save files to PREFIX/...  [string] [default: ""]
  -M, --process-module    javascript module handling the contents
  --process               javascript function handling the contents (overriden by -M)
  -h, --help              Show help  [boolean]

Examples:
  wget.js http://www.yahoo.com  fetch the site content

Module use

var wget = require('wget.js');
wget("http://www.yahoo.com", {_: [], acceptHref: _ => _, process: _ => _});

About

Node.js wget-like alternative

License:MIT License


Languages

Language:JavaScript 100.0%