1.0.1 • Published 4 months ago

cfb-reader v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

cfb-reader

npm version npm downloads bundle JSDocs License

Read content of compound file binary format

Binary definition

Compound file binary format Official document

SectorsHeaderDiFATFAT StorageDirectoryMiniFATMini StreamNormal Stream
ContentBasic info of various StructureA list of all FAT Storage in the fileThe next sector position at the specified index (except DiFAT and FAT Storage itself)The directory structure that the file packedThe next position at the specified index (in the context of mini stream strucutre)Mini stream blobs (<4096B)Regular blobs (>4096B)
Starting Location0Specified in headerDiFAT0Specified in headerSpecified in headerSpecified by the root entry of directory entries (at index 0)Specified in each entry
Amount1 sectorSpecified in HeaderSpecified in header (not sure)Not specified (v4: in header)Specified in HeaderSpecified by the root entry of directory entriesNot specified
Sub-structureN/AFAT Storage's index in FATNext position in FAT chain of a sectorAn entry specified various properties of the objectNext position in mini stream chain of a mini sectorPart of a mini objectPart of a regular object
Sub-strucutre TypeN/Auint32uint32Directory Entryuint32bufferbuffer
Sub-structure SizeN/A4 bytes4 bytes128 bytes4 bytes64 bytesSector 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

1.0.1

4 months ago

1.0.0

4 months ago