Get unlimited public & private packages + team-based management with npm Teams.Learn more »

fetch-remote-dir

1.0.0 • Public • Published

fetch-remote-dir

Very easy downloader to fetch all listed files(with anchor element '') from a remote web page via HTTP.

usage

install:

npm install fetch-remote-dir [-g]

cli mode:

fetch-remote-dir --remote=http://yoursite/dirname --selector="x>y>z" [--target=your/target/dir]

program mode:

var fetcher = require('fetch-remote-dir')
fetcher.run({
    remote: 'http://yoursite/dirname',
    selector: 'file>anchor>selector',
    target: 'your/target/dir'
})

options

remote

remote url of file list page

selector

jquery-like selector to get all file links(present as element )

target

local directory to save downloaded files

Install

npm i fetch-remote-dir

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar