0.1.3-beta • Published 8 months ago

@gerardino/picture-fetcher v0.1.3-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

picture-fetcher-js

Fetches a set of pictures from a provided list of URLs.

Given a list of URLs stored in a source file, picture-fetcher-js will parse this list and fetch each URL into a target folder.

The list can be any UTF-8 plain text file with the URLs separated by commas (,) or new lines. If the URL is invalid or not a picture (determined by the content type of the response), the file will not be fetched and an error message will be shown.

The output path must be a folder that the user has access to write on. If the folder does not exist but the user has permissions to create it then picture-fetcher-js will create it.

Overwritting: By the default picture-fetcher-js will not overwrite existing files. To intentionally overwrite use the flag -r or --replace.

Verbose output: To get more details on what actions are being performed you can use the verbose flag -v or --verbose.

How to run

  1. Clone by git clone git@github.com:gerardino/picture-fetcher-js.git
  2. cd picture-fetcher-js
  3. npm install
  4. npx ts-node ./src/index.ts [options] "path/to/source/file"
0.1.3-beta

8 months ago

0.1.3-alpha

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago