{"id":18290526,"url":"https://github.com/react-doc/open-browsers","last_synced_at":"2025-06-19T07:09:42.111Z","repository":{"id":57315013,"uuid":"136424426","full_name":"react-doc/open-browsers","owner":"react-doc","description":"Attempts to open the browser with a given URL. On Mac OS X, attempts to reuse an existing Chrome tab via AppleScript.","archived":false,"fork":false,"pushed_at":"2025-05-07T05:51:19.000Z","size":43,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T18:33:21.023Z","etag":null,"topics":["applescript","browsers","npm","openbrowser"],"latest_commit_sha":null,"homepage":null,"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/react-doc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"ko_fi":"jaywcjlove","buy_me_a_coffee":"jaywcjlove","custom":["https://www.paypal.me/kennyiseeyou","https://jaywcjlove.github.io/#/sponsor"]}},"created_at":"2018-06-07T05:07:29.000Z","updated_at":"2025-05-07T05:51:22.000Z","dependencies_parsed_at":"2024-06-21T13:03:48.428Z","dependency_job_id":"f0663ec9-fb45-46c0-8e2e-efbcb5d336ec","html_url":"https://github.com/react-doc/open-browsers","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"c43f4f4d54c0545e10ea4bdee58979fd226bdd69"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/react-doc/open-browsers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-doc%2Fopen-browsers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-doc%2Fopen-browsers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-doc%2Fopen-browsers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-doc%2Fopen-browsers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-doc","download_url":"https://codeload.github.com/react-doc/open-browsers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-doc%2Fopen-browsers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260705893,"owners_count":23049494,"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":["applescript","browsers","npm","openbrowser"],"created_at":"2024-11-05T14:11:21.104Z","updated_at":"2025-06-19T07:09:37.093Z","avatar_url":"https://github.com/react-doc.png","language":"JavaScript","readme":"Open Browsers\n===\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![CI](https://github.com/react-doc/open-browsers/actions/workflows/ci.yml/badge.svg)](https://github.com/react-doc/open-browsers/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/open-browsers.svg)](https://www.npmjs.com/package/open-browsers)\n[![NPM Downloads](https://img.shields.io/npm/dm/open-browsers.svg?style=flat\u0026label=)](https://www.npmjs.com/package/open-browsers)\n\nAttempts to open the browser with a given URL.\nOn Mac OS X, attempts to reuse an existing Chrome tab via AppleScript.\nOtherwise, falls back to [open](https://github.com/sindresorhus/open) behavior. `open-browsers` form [react-dev-utils](https://github.com/facebook/create-react-app/blob/b8ff97be72c02128c0917437d98e1b672a25ceb4/packages/react-dev-utils/openBrowser.js).\n\n### Install\n\n```bash\nnpm install open-browsers --save-dev\n```\n\n### Usage\n\n\u003e openBrowsers(url: string): boolean \n\n```js\nvar openBrowsers = require('open-browsers');\nif (openBrowsers('http://localhost:3000')) {\n  console.log('The browser tab has been opened!');\n}\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\u003c!--GAMFC--\u003e\u003c!----\u003e\n\n\u003ca href=\"https://github.com/jaywcjlove\" title=\"小弟调调\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1680273?v=4\" width=\"42;\" alt=\"小弟调调\"/\u003e\u003c/a\u003e\u003c!--GAMFC-END--\u003e\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n### License\n\n`open-browsers` is open source software licensed as MIT.","funding_links":["https://ko-fi.com/jaywcjlove","https://buymeacoffee.com/jaywcjlove","https://www.paypal.me/kennyiseeyou","https://jaywcjlove.github.io/#/sponsor"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-doc%2Fopen-browsers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-doc%2Fopen-browsers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-doc%2Fopen-browsers/lists"}