{"id":21566841,"url":"https://github.com/tkosminov/epub-parser","last_synced_at":"2025-04-10T13:20:30.810Z","repository":{"id":91192831,"uuid":"482578097","full_name":"tkosminov/epub-parser","owner":"tkosminov","description":"Simple epub parser","archived":false,"fork":false,"pushed_at":"2024-07-12T05:16:51.000Z","size":5019,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:04:21.767Z","etag":null,"topics":["epub","parser"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tkosminov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-04-17T16:39:46.000Z","updated_at":"2024-08-23T18:51:22.000Z","dependencies_parsed_at":"2024-11-24T10:39:13.680Z","dependency_job_id":null,"html_url":"https://github.com/tkosminov/epub-parser","commit_stats":null,"previous_names":["timurrk/epub-parser"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fepub-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fepub-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fepub-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fepub-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkosminov","download_url":"https://codeload.github.com/tkosminov/epub-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225658,"owners_count":21068078,"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":["epub","parser"],"created_at":"2024-11-24T10:28:23.728Z","updated_at":"2025-04-10T13:20:30.788Z","avatar_url":"https://github.com/tkosminov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-epub-parser\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/epub-parser-simple\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/epub-parser-simple.svg\" alt=\"NPM Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/epub-parser-simple\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/epub-parser-simple.svg\" alt=\"Package License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/epub-parser-simple\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/epub-parser-simple.svg\" alt=\"NPM Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\nThe package exports a simple parser function which use epub file as input and output JavaScript object.\n\nAs it is written in TypeScript, types are already included in the package.\n\n## Installation\n\n```bash\nnpm i epub-parser-simple\n```\n\n## Usage\n\n```ts\nimport fs from 'fs';\n\nimport { parseEpub } from 'epub-parser-simple'\n\nconst file_path = `${__dirname}/${file_name}.epub`;\nconst buffer = fs.readFileSync(file_path);\n\nconst parsed_book = await parseEpub(buffer)\n\nfs.writeFile(`${__dirname}/${file_name}.json`, JSON.stringify(parsed_book, null, 2), 'utf8', () =\u003e {});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkosminov%2Fepub-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkosminov%2Fepub-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkosminov%2Fepub-parser/lists"}