nodefetch, a command line download tool

As part of me wanting to spend some time playing with command line Node.js tools, last week I sat down and wrote nodefetch. Whilst I don’t usually blog about my projects on here, I thought this one might be of use to a few people, so thought I’d quickl…


This content originally appeared on Jack Franklin and was authored by Jack Franklin

As part of me wanting to spend some time playing with command line Node.js tools, last week I sat down and wrote nodefetch. Whilst I don't usually blog about my projects on here, I thought this one might be of use to a few people, so thought I'd quickly write up about it. If you enjoyed last week's tutorial on creating a command line Node tool, this is a great chance for you to dive into the source of a little more complex tool.

Once installed through NPM with npm install nodefetch -g, you are able to download the latest copy of jQuery into your present working directory as easily as:

nodefetch jquery

You could also download multiple files:

nodefetch jquery backbone underscore

Isn't that awesome? I think so and a few folks I shared it with liked it too.

It works by keeping a .nodefetch.json file in your home directory that links package names to their downloads. When you first run nodefetch it will download the default file from my own server, but you are then free to edit it to add your own packages to suit you.

There's more detailed instructions on Github involving how nodefetch is tested (I even wrote another npm package to help me test it) and how to contribute if you'd like to help out. I've got plenty more planned for nodefetch and if you do find it useful I'd love for you to let me know. Similarly, if you look through the source and see anything you don't understand, feel free to ask.


This content originally appeared on Jack Franklin and was authored by Jack Franklin


Print Share Comment Cite Upload Translate Updates
APA

Jack Franklin | Sciencx (2012-08-20T00:00:00+00:00) nodefetch, a command line download tool. Retrieved from https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/

MLA
" » nodefetch, a command line download tool." Jack Franklin | Sciencx - Monday August 20, 2012, https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/
HARVARD
Jack Franklin | Sciencx Monday August 20, 2012 » nodefetch, a command line download tool., viewed ,<https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/>
VANCOUVER
Jack Franklin | Sciencx - » nodefetch, a command line download tool. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/
CHICAGO
" » nodefetch, a command line download tool." Jack Franklin | Sciencx - Accessed . https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/
IEEE
" » nodefetch, a command line download tool." Jack Franklin | Sciencx [Online]. Available: https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/. [Accessed: ]
rf:citation
» nodefetch, a command line download tool | Jack Franklin | Sciencx | https://www.scien.cx/2012/08/20/nodefetch-a-command-line-download-tool/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.