Answer the question
In order to leave comments, you need to log in
How to upload files from Git using JS \ Node?
There is a remote git repository.
Tell me, please, is it possible to download certain files from the repository using JavaScript or Node.js? If so, how?
UPD:
You can use the http.get() function to download a file :
var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.png");
var request = http.get("http://im.glogster.com/media/2/5/24/10/5241033.png", function(response) {
response.pipe(file);
});
Answer the question
In order to leave comments, you need to log in
npm install https://github.com/indexzero/forever/tarball/v0.5.6
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question