mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +00:00
35 lines
909 B
JavaScript
35 lines
909 B
JavaScript
import Book from "./book";
|
|
import Rendition from "./rendition";
|
|
import CFI from "./epubcfi";
|
|
import Contents from "./contents";
|
|
import * as utils from "./utils/core";
|
|
import { EPUBJS_VERSION } from "./utils/constants";
|
|
|
|
import IframeView from "./managers/views/iframe";
|
|
import DefaultViewManager from "./managers/default";
|
|
import ContinuousViewManager from "./managers/continuous";
|
|
|
|
/**
|
|
* Creates a new Book
|
|
* @param {string|ArrayBuffer} url URL, Path or ArrayBuffer
|
|
* @param {object} options to pass to the book
|
|
* @returns {Book} a new Book object
|
|
* @example ePub("/path/to/book.epub", {})
|
|
*/
|
|
function ePub(url, options) {
|
|
return new Book(url, options);
|
|
}
|
|
|
|
ePub.VERSION = EPUBJS_VERSION;
|
|
|
|
if (typeof(global) !== "undefined") {
|
|
global.EPUBJS_VERSION = EPUBJS_VERSION;
|
|
}
|
|
|
|
ePub.Book = Book;
|
|
ePub.Rendition = Rendition;
|
|
ePub.Contents = Contents;
|
|
ePub.CFI = CFI;
|
|
ePub.utils = utils;
|
|
|
|
export default ePub;
|