{"id":18267449,"url":"https://github.com/freaktechnik/moz-download-url","last_synced_at":"2025-04-04T22:30:34.814Z","repository":{"id":2415509,"uuid":"46489485","full_name":"freaktechnik/moz-download-url","owner":"freaktechnik","description":"Get URLs to download mozilla products from","archived":false,"fork":false,"pushed_at":"2025-03-27T11:55:25.000Z","size":1665,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T12:38:46.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/moz-download-url","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freaktechnik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-19T12:00:49.000Z","updated_at":"2025-03-27T11:55:28.000Z","dependencies_parsed_at":"2024-01-22T15:11:48.785Z","dependency_job_id":"c77842f0-7887-47bd-9799-90911580fd7a","html_url":"https://github.com/freaktechnik/moz-download-url","commit_stats":{"total_commits":156,"total_committers":7,"mean_commits":"22.285714285714285","dds":0.5961538461538461,"last_synced_commit":"ac0d6f9449c5e2e630f506c64979287586547878"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fmoz-download-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fmoz-download-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fmoz-download-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freaktechnik%2Fmoz-download-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freaktechnik","download_url":"https://codeload.github.com/freaktechnik/moz-download-url/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247260249,"owners_count":20909965,"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-05T11:27:24.542Z","updated_at":"2025-04-04T22:30:34.482Z","avatar_url":"https://github.com/freaktechnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moz-download-url\n\n[![codecov](https://codecov.io/github/freaktechnik/moz-download-url/graph/badge.svg?token=LqqcXtBadN)](https://codecov.io/github/freaktechnik/moz-download-url)\n\nGenerates an URL to download Mozilla products from.\n\n## Usage\n\nThe module exports a `build()` method to create the URL with.\nIt takes three arguments:\n\n- A string identifying the product to download (one of the product release channel constants)\n- A string identifying the OS (one of the `PLATFORMS` constants)\n- A string identifying the language (usually in the form of xx-XX)\n\nThere are constants for good values for product and OS, however there are\npossible other supported values.\n\n## Example\n\n```js\nimport * as mdu from \"moz-download-url\";\n\n// Get the URL to download the latest English (US) Firefox release for a 64-bit\n// Linux.\nmdu.build(mdu.FIREFOX.LATEST, mdu.PLATFORMS.LINUX64, \"en-US\");\n```\n\n## Why another package for this?\n\nYes, there already are a plethora of packages out there to generate such links,\nlike [mozilla-get-url](https://www.npmjs.com/package/mozilla-get-url) and others.\nHowever with the switch from FTP to AWS most of those solutions broke. You can't\nuse FTP clients anymore and you can't use the latest folders anymore. So if you\ndon't want to do a lot of HTML parsing you have to use the bouncer at\ndownload.mozilla.org. Which is exactly what this package does. However\ndownload.mozilla.org is very shallow in comparison to a file system. There are\nonly three relevant parameters. This package only handles those three parameters.\nMore \"high level\" packages like mozilla-get-url take more arguments and support\nmore products and builds. So this is just a really low-level way of making URLs\nto download Firefox or Thunderbird with.\n\nI hope the other modules will eventually catch up and hopefully even use this\nmodule as a base for the download.mozilla.org links.\n\n## License\n\nThis package is licensed under the [MPL v2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaktechnik%2Fmoz-download-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaktechnik%2Fmoz-download-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaktechnik%2Fmoz-download-url/lists"}