olegkron / save-page-as-epub

a CLI tool to fetch a webpage and save it as a readable ePub file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

save-page-as-epub

This package provides a command-line utility to fetch a webpage and save it as a readable ePub file. It's designed to simplify the process of saving online articles and web content for offline reading.

Installation

To install save-page-as-epub globally on your system, run:

npm install -g save-page-as-epub

Usage

To save a webpage as an ePub file, run:

savePageAsEpub <url>

Dependencies

  • @mozilla/readability: Parses the webpage for readable content.
  • jsdom: Provides DOM functionality for parsing webpages.
  • epub-gen: Generates ePub files from processed content.

About

a CLI tool to fetch a webpage and save it as a readable ePub file.