cfb-reader
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

cfb-reader

npm version npm downloads bundle JSDocs License

Read content of compound file binary format

Binary definition

Compound file binary format Official document

Sectors Header DiFAT FAT Storage Directory MiniFAT Mini Stream Normal Stream
Content Basic info of various Structure A list of all FAT Storage in the file The next sector position at the specified index (except DiFAT and FAT Storage itself) The directory structure that the file packed The next position at the specified index (in the context of mini stream strucutre) Mini stream blobs (<4096B) Regular blobs (>4096B)
Starting Location 0 Specified in header DiFAT[0] Specified in header Specified in header Specified by the root entry of directory entries (at index 0) Specified in each entry
Amount 1 sector Specified in Header Specified in header (not sure) Not specified (v4: in header) Specified in Header Specified by the root entry of directory entries Not specified
Sub-structure N/A FAT Storage's index in FAT Next position in FAT chain of a sector An entry specified various properties of the object Next position in mini stream chain of a mini sector Part of a mini object Part of a regular object
Sub-strucutre Type N/A uint32 uint32 Directory Entry uint32 buffer buffer
Sub-structure Size N/A 4 bytes 4 bytes 128 bytes 4 bytes 64 bytes Sector size

Note on package patches

  • unbuild is patched to forcely bundle dependencies for browser
  • binspector is patched to resolve the error casued by incorrect 'module' in its package.json

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i cfb-reader

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

187 kB

Total Files

9

Last publish

Collaborators

  • unluckyninja