{"id":18577929,"url":"https://github.com/gnucoop/ion-chunks-downloader","last_synced_at":"2025-05-16T01:34:14.835Z","repository":{"id":96920369,"uuid":"153756576","full_name":"gnucoop/ion-chunks-downloader","owner":"gnucoop","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-19T10:27:16.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T15:44:30.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnucoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-10-19T09:10:18.000Z","updated_at":"2018-10-19T10:27:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee0f5234-ede2-40a5-9149-bf6d5d93213d","html_url":"https://github.com/gnucoop/ion-chunks-downloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnucoop%2Fion-chunks-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnucoop%2Fion-chunks-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnucoop%2Fion-chunks-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnucoop%2Fion-chunks-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnucoop","download_url":"https://codeload.github.com/gnucoop/ion-chunks-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239313805,"owners_count":19618498,"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-11-06T23:32:08.044Z","updated_at":"2025-02-17T15:25:53.793Z","avatar_url":"https://github.com/gnucoop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n\n1. Install cordova plugin:\n    ```bash\n    ionic cordova plugin add https://github.com/gnucoop/cordova-plugin-chunks-downloader.git\n    ```\n\n2. Install bower module\n    ```bash\n    bower install --save https://github.com/gnucoop/ion-chunks-downloader.git\n    ```\n\n3. Import the `ion-chunks-downloader` javascript.\n    ```html\n   \u003cscript src=\"lib/ion-chunks-downloader/release/ion-chunks-downloader.min.js\"\u003e\u003c/script\u003e\n   ```\n\n4. Add `ion-chunks-downloader` as a dependency on your Ionic app:\n    ```javascript\n   angular.module(\"myApp\", [\"ionic\", \"ion-chunks-downloader\"]);\n   ```\n\n# Usage\n\nInject the `$chunksDownloaderService` and call download method\n```javascript\nangular.module('myModule', ['ion-chunks-downloader'])\n    .run(function($chunksDownloaderService) {\n        var chunks = [\n            'https://example.com/chunk1',\n            'https://example.com/chunk2'\n            'https://example.com/chunk3'\n        ];\n        var fileName = 'mergedFile.jpg';\n        $chunksDownloaderService\n            .download(chunks, fileName)\n            .then(function(mergedFileUri) {\n                // DO SOMETHING WITH MERGED FILE\n            })\n            .catch(console.log);\n    });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnucoop%2Fion-chunks-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnucoop%2Fion-chunks-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnucoop%2Fion-chunks-downloader/lists"}