wolfy-reader 0.1.0 → 0.2.0
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 +7 -3
- package/dist/core/index.js +1 -1
- package/dist/formats/epub/index.js +1 -1
- package/dist/formats/fb2/index.js +1 -1
- package/dist/formats/text/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
# wolfy-reader
|
|
1
|
+
# 📖 wolfy-reader
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/wolfy-reader)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**The ebook reading engine you drop into your own app.** Hand it bytes and an element; it gives you a real reading view — pages that turn, text you can search, and typography you can change without losing your place.
|
|
6
|
+
|
|
7
|
+
It is a library, not a reader app. No UI chrome, no routing, no settings screen, no shelf — and it never fetches and never persists. Your app owns the files, the storage and the look; wolfy-reader owns decoding, layout and the reading surface, and hands you a small API to drive them.
|
|
8
|
+
|
|
9
|
+
From-scratch, MIT-licensed, ESM-only TypeScript for EPUB, FB2 and plain text. Zero runtime dependencies, tree-shakeable subpaths, a headless core that runs under Node — and untrusted book content rendered inside a hardened sandboxed iframe.
|
|
6
10
|
|
|
7
11
|
## Install
|
|
8
12
|
|
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! wolfy-reader v0.
|
|
1
|
+
/*! wolfy-reader v0.2.0 | @license MIT | (c) Vitaliy Tkachuk | github.com/vitaliy-tkachuk/wolfy-reader */
|
|
2
2
|
export { BookError, CorruptContainerError, EncryptedContentError, UnrecognizedFormatError, } from './errors.js';
|
|
3
3
|
export { open } from './open.js';
|
|
4
4
|
export { capturePosition, parsePosition, resolvePosition, segmentSentences, serializePosition, } from './position.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! wolfy-reader v0.
|
|
1
|
+
/*! wolfy-reader v0.2.0 | @license MIT | (c) Vitaliy Tkachuk | github.com/vitaliy-tkachuk/wolfy-reader */
|
|
2
2
|
import { CorruptContainerError, EncryptedContentError } from '../../core/index.js';
|
|
3
3
|
import { sectionLookup } from '../../core/lookup.js';
|
|
4
4
|
import { openZip, ZipEncryptedEntryError, ZipError } from '../../zip/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! wolfy-reader v0.
|
|
1
|
+
/*! wolfy-reader v0.2.0 | @license MIT | (c) Vitaliy Tkachuk | github.com/vitaliy-tkachuk/wolfy-reader */
|
|
2
2
|
import { CorruptContainerError } from '../../core/index.js';
|
|
3
3
|
import { sectionLookup } from '../../core/lookup.js';
|
|
4
4
|
import { collapseWhitespace, escapeXmlAttribute, escapeXmlText } from '../../core/text.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! wolfy-reader v0.
|
|
1
|
+
/*! wolfy-reader v0.2.0 | @license MIT | (c) Vitaliy Tkachuk | github.com/vitaliy-tkachuk/wolfy-reader */
|
|
2
2
|
import { sectionLookup } from '../../core/lookup.js';
|
|
3
3
|
import { collapseWhitespace, escapeXmlText } from '../../core/text.js';
|
|
4
4
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! wolfy-reader v0.
|
|
1
|
+
/*! wolfy-reader v0.2.0 | @license MIT | (c) Vitaliy Tkachuk | github.com/vitaliy-tkachuk/wolfy-reader */
|
|
2
2
|
/**
|
|
3
3
|
* The package root: the browser-facing reader facade plus the headless core it
|
|
4
4
|
* operates on.
|
package/package.json
CHANGED