fs: Add string encoding option for Stream method
authorYosuke Furukawa <yosuke.furukawa@gmail.com>
Mon, 13 Apr 2015 17:46:52 +0000 (02:46 +0900)
committerYosuke Furukawa <yosuke.furukawa@gmail.com>
Fri, 5 Jun 2015 01:30:32 +0000 (10:30 +0900)
commit353e26e3c7ed9d160028ea7517d05edbebab5e7d
treeb60668f50fb26eb4a8ea5066d9f275db0b2209b7
parent59d9734e216c79cdab762f0f7eb38f1df3b944a0
fs: Add string encoding option for Stream method

Add string encoding option for fs.createReadStream and
fs.createWriteStream. and check argument type more strictly

PR-URL: https://github.com/nodejs/io.js/pull/1845
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
doc/api/fs.markdown
lib/fs.js
test/parallel/test-fs-read-stream-encoding.js [new file with mode: 0644]
test/parallel/test-fs-read-stream-throw-type-error.js [new file with mode: 0644]
test/parallel/test-fs-write-stream-throw-type-error.js [new file with mode: 0644]