A simple CLI tool with some utilities
node-baka --help, -hShow available commands.
node-baka get|g <url> [options]Download a file from the web.
NOTE:
url must point directly to the file you want to download, e.g. https://www.(...)/cat.jpghttp:// or https://-d, --destination <destination>Where to store the file. Defaults to the current directory.
NOTE:
~/pics/-f, --filename <filename>Name of the file to be downloaded. Defaults to "file".
NOTE: If you don't specify the file extension, node-baka will try to guess based on the url. You should avoid omitting it.
node-baka gzip|z <source> [options]Compress a local file.
NOTE:
source path must point directly to the file you want to compress, e.g. ~/docs/file.txt-d, --destination <destination>Where to store the compressed file. Defaults to the current directory.
-f, --filename <filename>Name of the compressed file. Defaults to file._extension_.
-p, --password <password>Encrypt the compressed file with the given password.
npm install -g node-baka
git clone https://github.com/diego-c/node-baka.gitcd node-bakanpm install or yarn installnpm start [command] [options] or yarn start [command] [options]./src/index.js [command] [options]To run all tests: npm test or yarn test
Check the documentation at node-baka docs
Issues and PRs are welcome. Please write accompanying tests with your PRs if have the time.
Generated using TypeDoc