{"id":15387282,"url":"https://github.com/rhysd/electron-open-url","last_synced_at":"2025-07-05T20:10:01.491Z","repository":{"id":57221818,"uuid":"73547351","full_name":"rhysd/electron-open-url","owner":"rhysd","description":"Open URL with Electron window from command line or Node.js program","archived":false,"fork":false,"pushed_at":"2017-02-15T07:01:12.000Z","size":18,"stargazers_count":17,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-07T06:04:22.719Z","etag":null,"topics":["command-line-tool","electron","open"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhysd.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":"2016-11-12T10:57:27.000Z","updated_at":"2025-02-06T14:39:54.000Z","dependencies_parsed_at":"2022-08-29T04:10:07.403Z","dependency_job_id":null,"html_url":"https://github.com/rhysd/electron-open-url","commit_stats":null,"previous_names":["rhysd/electron-open"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rhysd/electron-open-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Felectron-open-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Felectron-open-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Felectron-open-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Felectron-open-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhysd","download_url":"https://codeload.github.com/rhysd/electron-open-url/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhysd%2Felectron-open-url/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261391691,"owners_count":23151702,"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":["command-line-tool","electron","open"],"created_at":"2024-10-01T14:53:13.147Z","updated_at":"2025-07-05T20:10:01.459Z","avatar_url":"https://github.com/rhysd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"electron-open-url\n=================\n\nThis is a package to open something with Electron window. You can use this from\nboth command line and Node.js program.\n\nThis program continues to use the same window. So it does not open multiple tabs\nwhen you use this package repeatedly. This package is assumed to be used from\nother command line tools, editors or Node.js programs which opens some web page\nor file repeatedly.\n\n## Install\n\n```\n$ npm install -g electron-open-url electron\n```\n\nNote that this package registers 'electron' package as peer dependency. So you need to install it additionally. This is because make users to determine where the 'electron' package should be installed.\n\n## Usage\n\n### From command line\n\n![screen shot](https://github.com/rhysd/ss/blob/master/electron-open-url/main.gif?raw=true)\n\n`electron-open` command is available.\n\nFor example, below opens Twitter page with Electron window.\n\n```\n$ electron-open https://twitter.com/\n```\n\nYou want to open Twitter's Notification page. Then simply execute below.\n\n```\n$ electron-open https://twitter.com/i/notifications\n```\n\nThe notification page will be opened in the same window.\n\nFor more usage, please check `electron-open --help`.\n\n### From Node.js program\n\n```javascript\nconst open = require('electron-open');\n\nopen({\n    target: 'https://twitter.com',\n    fallback: true\n});\n```\n\nThe `target` property is a thing you want to open in Electron window.\nIf `fallback` property is set to `true`, it opens with OS's open method (like\n`open` command in macOS or `xdg-open` in X11) when 'electron' package was not\nfound.\n\n`open()` returns instance of `ChildProcess` if successfully process spawned.\nIf fallback command dispatched, it returns `null`. When spawning failed, it\nthrows an error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhysd%2Felectron-open-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhysd%2Felectron-open-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhysd%2Felectron-open-url/lists"}