From 34bfc80ca2ab2ae0c55c2ae7213661f7c6d47a0e Mon Sep 17 00:00:00 2001 From: Andy Perlitch Date: Tue, 19 May 2015 22:09:50 -0700 Subject: [PATCH] fixes #50 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 20856a9..b571633 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,15 @@ Returns the stream. Returns a pretty String interpretation of the File. Useful for console.log. +### contents + +The [stream](https://nodejs.org/api/stream.html#stream_stream) or [buffer](https://nodejs.org/api/buffer.html#buffer_class_buffer) of the file. For example: +```js +if (file.isBuffer()) { + var contents = file.contents.toString('utf8') +} +``` + ### path Absolute pathname string or `undefined`. Setting to a different value pushes the old value to `history`.