Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 132
    "I only want to download a file from a given url, and then save it to a given directory," it seems pretty clear. :) Commented Aug 14, 2012 at 2:26
  • 58
    Joseph is making an incorrect assertion that all node processes are server processes Commented Dec 8, 2013 at 14:36
  • 8
    @lededje What prevents a server process from downloading a file and saving it to a directory on a server? It is prefectly doable. Commented Feb 21, 2020 at 8:51
  • Note that as of Node 18, fetch is built in and no third party libraries or hand-rolled code involving caching data chunks or pipes is necessary anymore. Commented Jan 27, 2024 at 3:15