{"id":19877246,"url":"https://github.com/timursevimli/epubconventer","last_synced_at":"2025-05-02T12:30:45.166Z","repository":{"id":151163387,"uuid":"623332874","full_name":"timursevimli/epubconventer","owner":"timursevimli","description":"A Node.js script for converting PDF files to EPUB format using the ebook-convert tool from Calibre.","archived":false,"fork":false,"pushed_at":"2024-11-28T04:47:17.000Z","size":1141,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T16:03:39.882Z","etag":null,"topics":["conversion","converter","ebook","epub","pdf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timursevimli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-04T06:55:20.000Z","updated_at":"2025-04-20T12:23:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5d71502-7337-45df-86fa-e58943d87935","html_url":"https://github.com/timursevimli/epubconventer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursevimli%2Fepubconventer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursevimli%2Fepubconventer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursevimli%2Fepubconventer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursevimli%2Fepubconventer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timursevimli","download_url":"https://codeload.github.com/timursevimli/epubconventer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252038096,"owners_count":21684624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conversion","converter","ebook","epub","pdf"],"created_at":"2024-11-12T16:36:55.709Z","updated_at":"2025-05-02T12:30:44.900Z","avatar_url":"https://github.com/timursevimli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Epub Converter\n\n[![ci Status](https://github.com/timursevimli/epubconventer/workflows/CI/badge.svg)](https://github.com/timursevimli/epubconventer/actions?query=workflow%3A%22CI%22+branch%3Amaster)\n[![snyk](https://snyk.io/test/github/timursevimli/epubconventer/badge.svg)](https://snyk.io/test/github/timursevimli/epubconventer)\n[![npm downloads/month](https://img.shields.io/npm/dm/epubconventer.svg)](https://www.npmjs.com/package/epubconventer)\n[![npm downloads](https://img.shields.io/npm/dt/epubconventer.svg)](https://www.npmjs.com/package/epubconventer)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/timursevimli/epubconventer/blob/master/LICENSE)\n\nA Node.js script for converting PDF files to EPUB format using the ebook-convert tool from Calibre.\n\n## Installation\n\nBefore 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.\n\nOnce you have `ebook-convert` installed, you can install this script using npm:\n\n```bash\nnpm install -g epubconverter\n```\n\n## CLI Usage\n\nAfter installation, you can use the `epubconverter` command from the terminal to convert PDF files to EPUB format.\n\n### Example\n\n```bash\nepubconverter --target=\"./path/to/pdf/files\" --output=\"./path/to/output/directory\"\n```\n\n### Options\n\n- `--target` (required): The path to the directory containing the PDF files you want to convert.\n- `--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.\n\n### Examples\n\n```bash\nepubconverter --target=\"./pdfs\" --output=\"./epubs\"\n```\n\nThis will convert all the PDF files in the ./pdfs directory and save the resulting EPUB files in the ./epubs directory\n\n## Programmatic Usage\n\nYou can also use this script programmatically in your Node.js projects.\n\n```javascript\nconst EpubConverter = require('epubconverter');\nconst converter = new EpubConverter(\n  '/path/to/pdf/files',\n  '/path/to/output/directory',\n);\n\n// convert all the PDF files in the target directory to EPUB format\nconverter.convert().finally(() =\u003e {\n  console.log('All done!');\n});\n```\n\nThe convert method returns a Promise that resolves when all the conversions have completed.\n\n## Requirements\n\n- Node.js v16.18 or higher\n- `ebook-convert` tool from Calibre\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/timursevimli/epubconventer/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimursevimli%2Fepubconventer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimursevimli%2Fepubconventer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimursevimli%2Fepubconventer/lists"}