{"id":23301585,"url":"https://github.com/jdforsythe/angular-filesaver","last_synced_at":"2025-04-06T22:19:18.980Z","repository":{"id":58233281,"uuid":"41319153","full_name":"jdforsythe/angular-filesaver","owner":"jdforsythe","description":"FileSaver.js wrapped by an Angular service","archived":false,"fork":false,"pushed_at":"2016-04-19T14:24:17.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T05:11:33.751Z","etag":null,"topics":["angular","angular-factory","angularjs","files","filesaver"],"latest_commit_sha":null,"homepage":null,"language":null,"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/jdforsythe.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-08-24T18:12:13.000Z","updated_at":"2016-04-08T21:12:14.000Z","dependencies_parsed_at":"2022-08-30T22:30:09.681Z","dependency_job_id":null,"html_url":"https://github.com/jdforsythe/angular-filesaver","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/jdforsythe%2Fangular-filesaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdforsythe%2Fangular-filesaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdforsythe%2Fangular-filesaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdforsythe%2Fangular-filesaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdforsythe","download_url":"https://codeload.github.com/jdforsythe/angular-filesaver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557992,"owners_count":20958086,"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":["angular","angular-factory","angularjs","files","filesaver"],"created_at":"2024-12-20T10:14:37.201Z","updated_at":"2025-04-06T22:19:18.957Z","avatar_url":"https://github.com/jdforsythe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-filesaver\nFileSaver.js wrapped by an Angular service\n\n##Installation\n**Install using bower**\n\n```js\nbower install angular-filesaver\n```\n\n```html\n\u003cscript src=\"bower_components/angular-filesaver/angular-filesaver.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\nAdd as dependency in your module\n\n```js\nangular.module('yourApp', ['FileSaver']);\n```\n\n**Dependencies**\n\n1. angular\n2. filesaver.js (https://github.com/eligrey/FileSaver.js or `bower install file-saver.js`)\n3. Blob.js (https://github.eligrey/Blob.js or `bower install blob`) - optional, for legacy browser support\n\n\nRefer all dependencies in your page in the proper order\n\n```html\n\u003cscript src=\"./bower_components/angular/angular.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"./bower_components/blob/Blob.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"./bower_components/file-saver.js/FileSaver.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"./bower_components/angular-filesaver/angular-filesaver.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\n\n###Usage\n\nUse FileSaver as you would FileSaver's saveAs() method\n\n```js\nvar blob = new Blob(['Hello, world!'], {type: 'text/plain;charset=utf-8'});\nFileSaver(blob, 'hello world.txt');\n```\n\n## Contribute\nPlease do. Update and send pull requests if you have anything to add.\n\nLicense - MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdforsythe%2Fangular-filesaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdforsythe%2Fangular-filesaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdforsythe%2Fangular-filesaver/lists"}