From 605accf48ca90102fdf62fcf95136240561b2915 Mon Sep 17 00:00:00 2001 From: Joanna Walker Date: Sun, 2 Sep 2018 01:05:26 +0100 Subject: [PATCH] Update README.md with load() option Had to look for this in the source, would have been helpful to have it in the docs. Updated the README to mentioned the load() option based on the comment here: https://github.com/guyonroche/exceljs/issues/167#issuecomment-310272619 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 2cb8157ca..a973507dd 100644 --- a/README.md +++ b/README.md @@ -1230,6 +1230,13 @@ workbook.xlsx.readFile(filename) // pipe from stream var workbook = new Excel.Workbook(); stream.pipe(workbook.xlsx.createInputStream()); + +// load from buffer +var workbook = new Excel.Workbook(); +workbook.xlsx.load(data) + .then(function() { + // use workbook + }); ``` #### Writing XLSX