Library entry point
- Source:
- See:
Methods
(static) default(file, optionsopt) → {Promise.<{chunks: Array.<Chunk>, chunksByType: Array.<{type:number, chunks:Array.<Chunk>}>}>|null}
Parse a PNG file and return its data chunks
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
file |
PathLike | FileHandle | PNG file |
||||||||||||||||||||||||||
options |
Object |
<optional> |
Parsing options Properties
|
- Source:
Returns:
The raw chunks array (by order of appearance) and an object of these chunks indexed by chunk type (as a 32 bit unsigned int)