{"id":19368823,"url":"https://github.com/mlezcano1985/file-download","last_synced_at":"2025-06-15T07:04:53.990Z","repository":{"id":57235566,"uuid":"155560069","full_name":"mlezcano1985/file-download","owner":"mlezcano1985","description":"An easy way to download a file from the web browser","archived":false,"fork":false,"pushed_at":"2019-06-21T20:46:48.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T19:23:51.102Z","etag":null,"topics":["ajax-request","blob","download","http-request","javascript"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/mlezcano1985.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":"2018-10-31T13:14:15.000Z","updated_at":"2019-10-17T09:56:24.000Z","dependencies_parsed_at":"2022-09-15T06:41:37.079Z","dependency_job_id":null,"html_url":"https://github.com/mlezcano1985/file-download","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlezcano1985/file-download","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Ffile-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Ffile-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Ffile-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Ffile-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlezcano1985","download_url":"https://codeload.github.com/mlezcano1985/file-download/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Ffile-download/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935601,"owners_count":22934386,"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":["ajax-request","blob","download","http-request","javascript"],"created_at":"2024-11-10T08:08:56.002Z","updated_at":"2025-06-15T07:04:53.965Z","avatar_url":"https://github.com/mlezcano1985.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-save-browser\n\nAn easy way to download a file from the web browser\n\n# Install\n`npm install file-save-browser`\n\n# How to use?\n\nYou can see the file **sample.html** with an very easy example.\n\n```\n\nvar base64 = \"\"; // base64 file content\n\nvar type = \"\"; // file content type\n\nvar name = \"\"; // file name with extension\n\nwindow.FileDownload(base64, type, name)\n\n.then(() =\u003e console.log('download successful.'))\n\n.catch((err) =\u003e console.error('download error: ', err));\n\n```\n\n# Support\n\nIf you are having general issues with this package, feel free to contact me on [Twitter](https://twitter.com/mlezcano1985).\n\nIf you believe you have found an issue, please report it using the [GitHub issue tracker](https://github.com/mlezcano1985/file-download/issues), or better yet, fork the repository and submit a pull request.\n\nIf you're using this package, I'd love to hear your thoughts. Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlezcano1985%2Ffile-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlezcano1985%2Ffile-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlezcano1985%2Ffile-download/lists"}