{"id":15827631,"url":"https://github.com/dackmin/angular-epub2","last_synced_at":"2025-11-06T23:03:22.759Z","repository":{"id":58243147,"uuid":"45399373","full_name":"dackmin/angular-epub2","owner":"dackmin","description":"Epub2 service for Angular","archived":false,"fork":false,"pushed_at":"2015-11-02T16:04:56.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T10:26:04.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dackmin.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}},"created_at":"2015-11-02T14:27:41.000Z","updated_at":"2015-11-02T15:49:05.000Z","dependencies_parsed_at":"2022-08-31T01:01:43.223Z","dependency_job_id":null,"html_url":"https://github.com/dackmin/angular-epub2","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/dackmin%2Fangular-epub2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2Fangular-epub2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2Fangular-epub2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dackmin%2Fangular-epub2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dackmin","download_url":"https://codeload.github.com/dackmin/angular-epub2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628399,"owners_count":20808105,"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":[],"created_at":"2024-10-05T10:07:52.235Z","updated_at":"2025-11-06T23:03:17.738Z","avatar_url":"https://github.com/dackmin.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular ePub2\n\nEpub2 service for Angular\n\n\n## Installation\n\n  - Npm : `npm i angular-epub2`\n  - Bower : `bower i angular-epub2`\n\n\n## Usage\n\n  - Add `script` tag :\n\n  ```html\n    \u003cscript src=\"angular-epub2/dist/angular-epub2.min.js\"\u003e\u003c/script\u003e\n  ```\n\n  - Include module :\n\n  ```coffeescript\n    angular\n        .module \"myApp\", [\n            ...\n            \"epub2\"\n        ]\n  ```\n\n  - Include service in controller :\n\n  ```coffeescript\n    angular\n        .module \"myApp\"\n        .controller \"TestCtrl\", ($scope, $epub2)\n  ```\n\n  - Create a book object with these exact properties (yup, to be enhanced in future versions) :\n\n  ```coffeescript\n    book =\n        title: \"My Wonderful Book\"\n        author: \"Eric Cantona\"\n        ean: \"2345345456346\"\n        locale: \"fr_FR\"\n        publisher: \"Stade Francais\"\n        description: \"This is a description\"\n        date: new Date()\n        cover: [{ \u003cFile\u003e }]\n        chapters: [\n            { name: \"Chapter 1\", slug: \"chapter-1\", content: \"This is the first chapter\" }\n            { name: \"Chapter 2\", slug: \"chapter-2\", content: \"Well, this is the second chapter\" }\n        ]\n  ```\n\n  - Then publish/download it :\n\n  ```coffeescript\n    $epub2.publish book, \"test.epub\"\n  ```\n\n## Re-Build\n\nThis project is written in CoffeeScript and is compiled \u0026 minified using Grunt tasks.\n\nIn order to make a pull request, you will need to build your code by doing two easy steps :\n  - Install dependencies : `npm i`\n  - (Optional) Build project to check temporary compiled files : `grunt build`\n  - Release project : `grunt release`\n\n\n## License\n\nThis project is under a GNU GPL v2 license.\nSee attached `LICENSE` file for more informations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdackmin%2Fangular-epub2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdackmin%2Fangular-epub2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdackmin%2Fangular-epub2/lists"}