{"id":20434251,"url":"https://github.com/alex8088/electron-swan","last_synced_at":"2025-04-12T21:11:45.136Z","repository":{"id":218361055,"uuid":"745572321","full_name":"alex8088/electron-swan","owner":"alex8088","description":"🦢 A cli tool for managing local Electron release artifacts","archived":false,"fork":false,"pushed_at":"2024-01-21T15:46:03.000Z","size":1057,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T00:19:24.542Z","etag":null,"topics":["artifacts","cli-tool","electron"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alex8088.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":"2024-01-19T16:19:30.000Z","updated_at":"2024-04-09T08:55:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fe822c9-7074-4971-a885-ae924e721e4b","html_url":"https://github.com/alex8088/electron-swan","commit_stats":null,"previous_names":["alex8088/electron-swan"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex8088%2Felectron-swan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex8088%2Felectron-swan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex8088%2Felectron-swan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex8088%2Felectron-swan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex8088","download_url":"https://codeload.github.com/alex8088/electron-swan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631679,"owners_count":21136562,"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":["artifacts","cli-tool","electron"],"created_at":"2024-11-15T08:25:28.344Z","updated_at":"2025-04-12T21:11:45.130Z","avatar_url":"https://github.com/alex8088.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🦢 electron-swan\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA cli tool for managing local Electron release artifacts\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/electron-swan?color=orange\u0026label=version\"\u003e\n\u003cimg src=\"https://img.shields.io/github/license/alex8088/electron-swan?color=blue\" alt=\"license\" /\u003e\n\u003c/p\u003e\n\n\u003cpre align=\"center\"\u003enpm i -g \u003cb\u003eelectron-swan\u003c/b\u003e\u003c/pre\u003e\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/list.png' width='582'/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003euse \u003cb\u003eswan\u003c/b\u003e to download and cache before installing or updating Electron\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/install.gif' width='582'/\u003e\n\u003c/p\u003e\n\n## Features\n\n- List all local artifacts and disk usage\n- Clean up by version range to save disk space\n- Check for updates by version range\n- Make Electron installation faster\n\n## Usage\n\nSee `swan --help` for more details\n\n### swan list\n\nAliases: `swan ls`.\n\nList all local artifacts.\n\n| Options          | Description                                       |\n| ---------------- | :------------------------------------------------ |\n| `-p, --platfrom` | specify platform, e.g. `darwin`, `win32`, `linux` |\n| `-a, --arch`     | specify architecture, e.g. `x64`, `ia32`, `arm64` |\n| `-d, --detail`   | show all archives (default: false)                |\n\n\u003cp align='center'\u003eSpecify \u003cb\u003earch\u003c/b\u003e or \u003cb\u003eplatform\u003c/b\u003e\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/list-p-a.png' width='582'/\u003e\n\u003c/p\u003e\n\n\u003cp align='center'\u003eShow all archives\u003c/p\u003e\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/list-d.png' width='582'/\u003e\n\u003c/p\u003e\n\n## swan remove \\\u003cversion\\\u003e\n\nAliases: `swan rm \u003cversion\u003e`.\n\nClean up local artifacts by version range. The `version` is required and is satisfied by the version range according to [semver](https://github.com/npm/node-semver).\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/rm.png' width='582'/\u003e\n\u003c/p\u003e\n\nYou can use `-f, --force` option to remove directly without confirmation.\n\n## swan check [version]\n\nCheck for updates by version prefix. You can use `--tag` option to check prerelease version, the tag must be `beta` or `alpha`.\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/check.png' width='582'/\u003e\n\u003c/p\u003e\n\n## swan install [version]\n\nAliases: `swan i`, `swan add`.\n\nDownload the newer version that is satisfied by the version range according to semver. If no version range is specified, the latest version will be downloaded.\n\n| Options          | Description                                                                  |\n| ---------------- | :--------------------------------------------------------------------------- |\n| `-p, --platfrom` | specify platform, e.g. `darwin`, `win32`, `linux`                            |\n| `-a, --arch`     | specify architecture, e.g. `x64`, `ia32`, `arm64`                            |\n| `--mirror`       | specify mirrors to download Electron release artifacts (default: npm mirror) |\n\n\u003cp align='center'\u003e\n\u003cimg src='./screenshots/install.gif' width='582'/\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) © alex.wei\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex8088%2Felectron-swan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex8088%2Felectron-swan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex8088%2Felectron-swan/lists"}