How do i download files from volofile?

20 views
Skip to first unread message

jsmarkus

unread,
Jan 30, 2013, 1:58:43 AM1/30/13
to vol...@googlegroups.com
Is there any API to download files from volofile command?

(I am writing a volo template, that uses node-webkit and installjammer to create desktop executable, so I need to download node-webkit and installjammer, but i don't think that `install` is the right option for that).

James Burke

unread,
Jan 30, 2013, 7:20:35 PM1/30/13
to vol...@googlegroups.com
You can choose any node module you would like to use. The 'http' and
'https' built in modules in node have basic network fetching
functionality. If you want to see an example, the "net" module used
internally in volo is one:

https://github.com/volojs/volo/blob/master/lib/net.js

For modules that are not build into node, you can put some npm
dependencies in the package.json for the template, volo create will
fetch them, and then you can just require() them as you would any node
module in the volofile.

James
Reply all
Reply to author
Forward
0 new messages