0.1.2 • Published 7 years ago
cfbf v0.1.2
node-cfbf
A Node.js binding for POLE, the portable C++ library to access Microsoft OLE compound binary file
Installation
npm install cfbf
Usage
Class: pole.Storage
A Storage
provides an interface for accessing OLE file. Only synchronous reading is supported yet.
new pole.Storage(filepath)
Opens a new file stream.
storage.streamSync(path)
path
[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String): An absolute path to the stream (e.g "/Workbook").
Returns a binary [Buffer](https://nodejs.org/api/buffer.html#buffer_class_buffer) of the specified stream.
storage.closeSync()
Closes a file stream.
License
POLE is under the BSD 3-clause license, and this binding package is under MIT license. See LICENSE and NOTICE.