Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

epubconventer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epubconventer

Epub conventer

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

Epub Converter

ci Status snyk npm downloads/month npm downloads license

A Node.js script for converting PDF files to EPUB format using the ebook-convert tool from Calibre.

Installation

Before using this script, you need to have the ebook-convert tool installed on your machine. You can download the latest version of Calibre, which includes the ebook-convert tool, from the Calibre website.

Once you have ebook-convert installed, you can install this script using npm:

npm install -g epubconverter

CLI Usage

After installation, you can use the epubconverter command from the terminal to convert PDF files to EPUB format.

Example

epubconverter --target="./path/to/pdf/files" --output="./path/to/output/directory"

Options

  • --target (required): The path to the directory containing the PDF files you want to convert.
  • --output (optional): The path to the output directory where the converted EPUB files will be saved. If not specified, the converted files will be saved in the target directory.

Examples

epubconverter --target="./pdfs" --output="./epubs"

This will convert all the PDF files in the ./pdfs directory and save the resulting EPUB files in the ./epubs directory

Programmatic Usage

You can also use this script programmatically in your Node.js projects.

const EpubConverter = require('epubconverter');
const converter = new EpubConverter(
  '/path/to/pdf/files',
  '/path/to/output/directory',
);

// convert all the PDF files in the target directory to EPUB format
converter.convert().finally(() => {
  console.log('All done!');
});

The convert method returns a Promise that resolves when all the conversions have completed.

Requirements

  • Node.js v16.18 or higher
  • ebook-convert tool from Calibre

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 28 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc