@papyrus-sdk/engine-epub 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/package.json +19 -3
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Papyrus Engine EPUB
|
|
2
|
+
|
|
3
|
+
Web engine for EPUB documents, built on top of `epubjs`.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @papyrus-sdk/engine-epub
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { EPUBEngine } from '@papyrus-sdk/engine-epub';
|
|
15
|
+
|
|
16
|
+
const engine = new EPUBEngine();
|
|
17
|
+
await engine.load({ type: 'epub', source: { uri: 'https://example.com/book.epub' } });
|
|
18
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papyrus-sdk/engine-epub",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"papyrus",
|
|
7
|
+
"epub",
|
|
8
|
+
"document",
|
|
9
|
+
"sdk",
|
|
10
|
+
"viewer"
|
|
11
|
+
],
|
|
4
12
|
"main": "dist/index.js",
|
|
5
13
|
"module": "dist/index.mjs",
|
|
6
14
|
"types": "dist/index.d.ts",
|
|
@@ -17,9 +25,17 @@
|
|
|
17
25
|
"publishConfig": {
|
|
18
26
|
"access": "public"
|
|
19
27
|
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/solrachix/Papyrus.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://solrachix.github.io/Papyrus/",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/solrachix/Papyrus/issues"
|
|
35
|
+
},
|
|
20
36
|
"dependencies": {
|
|
21
|
-
"@papyrus-sdk/core": "0.1.
|
|
22
|
-
"@papyrus-sdk/types": "0.1.
|
|
37
|
+
"@papyrus-sdk/core": "0.1.3",
|
|
38
|
+
"@papyrus-sdk/types": "0.1.3",
|
|
23
39
|
"epubjs": "^0.3.92"
|
|
24
40
|
},
|
|
25
41
|
"scripts": {
|