An easy-to-use epub parser written in TypeScript.
flesh is epub's content and it is in the format of markdown.
As it is written in TypeScript, types are already included in the package.
npm install simple-epub-parser --save
parser(target: string | buffer, options?: object)
It can be the path to the file or file's binary string or buffer
type(optional): 'binaryString' | 'path' | 'buffer'
It forces the parser to treat supplied target as the defined type, if not defined the parser itself will decide how to treat the file (useful when you are not sure if the path is valid).