{"id":18469309,"url":"https://github.com/vishwagauravin/trigger-download-file-pro","last_synced_at":"2025-08-26T08:08:29.576Z","repository":{"id":46031674,"uuid":"429555154","full_name":"VishwaGauravIn/trigger-download-file-pro","owner":"VishwaGauravIn","description":"It helps you to actually trigger download of any file available on any server, and avoiding opening of the file in browser.","archived":false,"fork":false,"pushed_at":"2021-11-20T11:23:23.000Z","size":114,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T10:41:41.780Z","etag":null,"topics":["download","download-file","download-photos","download-songs","download-videos","downloader","file-downloader","javascript","nextjs","react","reactjs","trigger-events"],"latest_commit_sha":null,"homepage":"https://triggerdownload.herokuapp.com","language":"JavaScript","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/VishwaGauravIn.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":"2021-11-18T19:31:08.000Z","updated_at":"2024-11-02T20:17:29.000Z","dependencies_parsed_at":"2022-09-12T06:12:13.002Z","dependency_job_id":null,"html_url":"https://github.com/VishwaGauravIn/trigger-download-file-pro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VishwaGauravIn/trigger-download-file-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishwaGauravIn%2Ftrigger-download-file-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishwaGauravIn%2Ftrigger-download-file-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishwaGauravIn%2Ftrigger-download-file-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishwaGauravIn%2Ftrigger-download-file-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VishwaGauravIn","download_url":"https://codeload.github.com/VishwaGauravIn/trigger-download-file-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishwaGauravIn%2Ftrigger-download-file-pro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272192669,"owners_count":24889452,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["download","download-file","download-photos","download-songs","download-videos","downloader","file-downloader","javascript","nextjs","react","reactjs","trigger-events"],"created_at":"2024-11-06T10:09:51.387Z","updated_at":"2025-08-26T08:08:29.550Z","avatar_url":"https://github.com/VishwaGauravIn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trigger-download-file-pro\nIt helps you to actually trigger download of any file available on any server, and avoiding opening of the file in browser.\n\n# How to Use ?\nThere are 2 ways to use it\n## First:\nJust create anchor tag `\u003ca\u003e` and provide link in this format \u003c/BR\u003e\n`https://triggerdownload.herokuapp.com/api/download?url=YOUR_URL\u0026filename=FILE_NAME\u0026format=FILE_FORMAT`\n#### **Required Parameters**\n`url` = Your download URL \u003c/br\u003e\n`filename` = File Name for Downloaded file \u003c/br\u003e\n`format` = format/extension of the file that you want to download \u003c/br\u003e\n\n#### **Example 1:**\nSimple Example\n``` html\n\u003ca href=\"https://triggerdownload.herokuapp.com/api/download?url=https://ytdlpro.herokuapp.com/def_thumb.jpg\u0026filename=logo\u0026format=jpg\"\u003eClick to Trigger Download!\u003c/a\u003e\n```\n#### **Example 2:**\nPro Example , incase you need to pass url that contains `\u0026` , we will just encode the url and then pass it. Let's assume you have to download from this url https://avatars.githubusercontent.com/u/81325730?v=4 then we will first use `encodeURIComponent` to remove the `\u0026` from URL and then pass it in anchor tag. \u003c/br\u003e\nSimple HTML\n``` html\n\u003ca href=\"https://triggerdownload.herokuapp.com/api/download?url=\"+url+\"\u0026filename=test\u0026format=jpg\"\u003eClick to Trigger Download!\u003c/a\u003e\n\u003cscript\u003e\n  const url = encodeURIComponent(https://avatars.githubusercontent.com/u/81325730?v=4)\n\u003c/script\u003e\n```\nReact/NextJS\n``` javascript\n\u003ca href=\"https://triggerdownload.herokuapp.com/api/download?url=\"+encodeURIComponent(https://avatars.githubusercontent.com/u/81325730?v=4)+\"\u0026filename=test\u0026format=jpg\"\u003eClick to Trigger Download!\u003c/a\u003e\n```\nSimilary, you can also pass variable as filename and format !\n\n## Second:\nYou can copy `download.js` file from public/api folder of this repository and use it as your own API and you can also customise it as per your choice.\n\n**ENJOY!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwagauravin%2Ftrigger-download-file-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishwagauravin%2Ftrigger-download-file-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwagauravin%2Ftrigger-download-file-pro/lists"}