Download listed files from a json array
Last updated 4 years ago by entozoon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install get-all-the-things 
SYNC missed versions from official npm registry.

Get All The Things!

Download listed files from a json array to given targets.


Well you might just want to download a big ol' list of files, or possibly something more adventurous?

For example, my site parses markdown files to create its articles and some of those articles incorporate github project readmes. So, in order to keep those localised readmes nice and fresh, I can run this script to bring down the up-to-date files and slot them into the necessary directories.


yarn add get-all-the-things


node node_modules/get-all-the-things/get-all-the-things.js


You'll need a get-all-these-things.json file in your project's root directory with structure similar to:

		"source": "",
		"target": "downloads/image-name",
		"retainFiletype": true
		"source": "",
		"target": "downloads/file-name.doc"

These are the available parameters for each item

Option Type Default Description
source string null Filepath from which to download
target string null Local destination filepath
retainFiletype bool false If the target filepath should be appended with the original file type

Current Tags

  • 1.0.2                                ...           latest (4 years ago)

3 Versions

  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |