Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
epubconventer
Advanced tools
A Node.js script for converting PDF files to EPUB format using the ebook-convert tool from Calibre.
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
After installation, you can use the epubconverter
command from the terminal to convert PDF files to EPUB format.
epubconverter --target="./path/to/pdf/files" --output="./path/to/output/directory"
--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.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
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.
ebook-convert
tool from CalibreThis project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Epub conventer
The npm package epubconventer receives a total of 3 weekly downloads. As such, epubconventer popularity was classified as not popular.
We found that epubconventer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.