ole-doc

0.1.1 • Public • Published

ole-doc

Read streams from an OLE Compound Document, e.g. StructuredStorage.

Example Usage

Normal

OleDoc = require('../lib/ole-doc').OleCompoundDoc;
var doc = new OleDoc( 'filename.ext' );
doc.on('err', function(err) {
  // do something with err
});
doc.on('ready', function() {
  var stream = doc.storage('StorageName').stream('StreamName');
  // do something with stream
});
doc.read();

With Custom Header

var headerSize = 24;
doc.read(headerSize, function(buffer) {
  // do something with buffer
  // return false to stop reading (if you don't like the header for some reason)
  // return true to continue reading like normal
});

Package Sidebar

Install

npm i ole-doc

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • atariman486
  • morungos