UNPKG

epub-chinese-converter

Version:

A small util to convert epub files from Simplified Chinese to Traditional Chinese

50 lines (49 loc) 1.39 kB
declare function _exports(inBuffer: any, options: any): { /** * Returns an array of ZipEntry objects existent in the current opened archive * @return Array */ readonly entries: any[]; /** * Archive comment * @return {String} */ comment: string; getEntryCount: () => any; forEach: (callback: any) => void; /** * Returns a reference to the entry with the given name or null if entry is inexistent * * @param entryName * @return ZipEntry */ getEntry: (entryName: any) => any; /** * Adds the given entry to the entry list * * @param entry */ setEntry: (entry: any) => void; /** * Removes the entry with the given name from the entry list. * * If the entry is a directory, then all nested files and directories will be removed * @param entryName */ deleteEntry: (entryName: any) => void; /** * Iterates and returns all nested files and directories of the given entry * * @param entry * @return Array */ getEntryChildren: (entry: any) => any[]; /** * Returns the zip file * * @return Buffer */ compressToBuffer: () => Buffer; toAsyncBuffer: (onSuccess: any, onFail: any, onItemStart: any, onItemEnd: any) => void; }; export = _exports;