* Implement the below function, which takes a node stream, writes the
output to
* the file in 'path', and returns a promise which resolves when the stream
is
* exhausted and all data is successfully written to the file system.
*
* To write to the file system, use `fs-promise`, which provides promise
wrappers
* around things like `fs.writeFile()`. Do _not_ use
`fs.createWriteStream()`.
*
* @param {Stream} stream a streams3-compatible stream, not in object mode
* @param {String} filePath
* @return {Promise} resolves when all data successfully written, rejects
if any error
*/
function writeStreamToFile(stream, filePath)
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/997f35b3-b867-4c5c-bbcc-30e5dbb04582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.