https://github.com/devlooped/epub
A lightweight library that implements EPUB standard
https://github.com/devlooped/epub
Last synced: about 1 year ago
JSON representation
A lightweight library that implements EPUB standard
- Host: GitHub
- URL: https://github.com/devlooped/epub
- Owner: devlooped
- License: mit
- Created: 2023-11-29T21:46:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T00:33:53.000Z (about 1 year ago)
- Last Synced: 2025-06-17T01:32:53.253Z (about 1 year ago)
- Language: C#
- Size: 6.54 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
 EPUB
============
Lightweight read-only API for processing EPUB documents.
[](https://www.nuget.org/packages/Devlooped.Epub)
[](https://www.nuget.org/packages/Devlooped.Epub)
[](https://github.com/devlooped/epub/blob/main/license.txt)
[](https://github.com/devlooped/epub/actions)
## Usage
```csharp
using var pub = Publication.Open(@"Samples/how-to-think-about-the-economy.epub");
Assert.Equal("How to Think about the Economy", pub.Package.Title);
Assert.Equal("en-US", pub.Package.Language);
foreach (var content in pub.Package.Navigation)
{
XDocument doc = content.Open();
// Useful in conjunction with Devlooped.Web for CSS-selectors
string? title = doc.CssSelectElement("head title")?.Value;
// ...
}
```
# Sponsors
[](https://github.com/clarius)
[](https://github.com/KirillOsenkov)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/decriptor)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/dgnaegi)
[](https://github.com/AshleyMedway)
[](https://github.com/Keflon)
[](https://github.com/tbolon)
[](https://github.com/kfrancis)
[](https://github.com/SeanKilleen)
[](https://github.com/twenzel)
[](https://github.com/Giorgi)
[](https://github.com/MikeCodesDotNET)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/mackayn)
[](https://github.com/certifytheweb)
[](https://github.com/IxTechnologies)
[](https://github.com/davidjenni)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/okyrylchuk)
[](https://github.com/akunzai)
[](https://github.com/jakobt)
[](https://github.com/seanalexander)
[](https://github.com/tinohager)
[](https://github.com/ploeh)
[](https://github.com/angelobelchior)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)
[](https://github.com/agileworks-eu)
[](https://github.com/sorahex)
[](https://github.com/arsdragonfly)
[](https://github.com/vezel-dev)
[](https://github.com/sponsors/devlooped)
[Learn more about GitHub Sponsors](https://github.com/sponsors)