dill-cli
v0.1.3
Published
Command-line (CLI) program to download and optionally decompress gzipped files.
Downloads
508
Maintainers
Readme
dill - download and decompress gzipped tar files with a CLI and API
dill is a CLI app to download gzipped files and optionally decompress their contents. It also provides a simple programmatic API.
Implementation-wise, dill uses the Fetch API via node-fetch-native to download files, which means it is reasonably cross-platform and will use native Fetch implementations where available.
Why?
dill is intended for use in CI/CD systems for TypeScript/JavaScript projects. It fills a similar need to curl or wget -- a straightforward way to download a file given its URL.
In TypeScript/JavaScript projects, dependencies are typically specified using package.json, and thus it's most convenient to use only things that can be specified and installed using package.json. Moreover, dill is written in TypeScript and doesn't have any direct native dependencies. Thus, dill enables you to run the same build process locally as in CI/CD.
Usage
dill URL
Downloads a file from a URL and optionally extracts its contents.
USAGE
$ dill URL [-v | --quiet] [-o <value>] [--filename <value> | -e]
ARGUMENTS
URL URL of the file to download.
FLAGS
-e, --extract Decompress the file and, if it's a tarball, extract its contents.
-o, --out=<value> Directory in which to place the downloaded files.
--filename=<value> Name to use for the downloaded file. Cannot be used with --extract.
LOGGING FLAGS
-v, --verbose Enable verbose logging.
--quiet Disable all logging.
DESCRIPTION
Downloads a file from a URL and optionally extracts its contents.