parse
parse(
source
,parserConfig
?):Promise
<BaseParser
>
Defined in: src/parseSource.ts:21
Load a Flipnote from a given source, returning a promise with a parser object. It will auto-detect the Flipnote format and return either a PpmParser or KwzParser accordingly.
Parameters
Parameter | Type | Description |
---|---|---|
source | any | Source to load a Flipnote from. This will attempt to use one of the registered loaders to load the Flipnote. Depending on the operating environment, the default loader set supports the following sources: - A string representing a web URL. - An ArrayBuffer. - A File object (Browser only). - A Buffer object (NodeJS only). |
parserConfig ? | Partial <Partial <KwzParserSettings >> | Config settings to pass to the parser, see FlipnoteParserSettings. |
Returns
Promise
<BaseParser
>