{"id":13673248,"url":"https://github.com/hashrock/deno-opn","last_synced_at":"2025-04-09T03:32:26.274Z","repository":{"id":40580222,"uuid":"162994915","full_name":"hashrock/deno-opn","owner":"hashrock","description":"Opens stuff like websites, files, executables. Cross-platform, for Deno.","archived":false,"fork":false,"pushed_at":"2022-05-14T09:10:26.000Z","size":26,"stargazers_count":39,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:12:02.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://doc.deno.land/https/raw.githubusercontent.com/hashrock/deno-opn/master/opn.ts","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/hashrock.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":"2018-12-24T13:46:54.000Z","updated_at":"2024-09-30T13:22:41.000Z","dependencies_parsed_at":"2022-08-09T23:40:58.312Z","dependency_job_id":null,"html_url":"https://github.com/hashrock/deno-opn","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrock%2Fdeno-opn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrock%2Fdeno-opn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrock%2Fdeno-opn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrock%2Fdeno-opn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashrock","download_url":"https://codeload.github.com/hashrock/deno-opn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247973955,"owners_count":21026738,"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-08-02T10:00:31.928Z","updated_at":"2025-04-09T03:32:26.008Z","avatar_url":"https://github.com/hashrock.png","language":"TypeScript","funding_links":[],"categories":["基础设施","Uncategorized","Modules","Libraries"],"sub_categories":["JAM Stack/静态站点","Uncategorized","Online Playgrounds","Utils","Assistants"],"readme":"\u003cdiv align = center\u003e\n\n# Deno Opn\n***A port of [OPN]***\n\n\u003cbr\u003e\n\u003cbr\u003e\n    \n[![Badge License]][License] [![Badge Port]][Hashrock] [![Badge Opn]][Opn]\n\n\u003cbr\u003e\n\u003cbr\u003e\n    \n## Usage\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n### Import\n\n##### Latest\n\n*Use the bleeding edge.*\n\n```js\nimport { open } from 'https://github.com/hashrock/deno-opn/raw/master/mod.ts'\n```\n\n##### Version\n\n*Use a specific **[Release]** tag.*\n\n```js\nimport { open } from 'https://github.com/hashrock/deno-opn/raw/\u003cVersion Tag\u003e/mod.ts'\n```\n\nv2.0.0\n\n```js\nimport { open } from 'https://github.com/hashrock/deno-opn/raw/v2.0.0/mod.ts'\n```\n\nv1.1.1(legacy)\n\n```js\nimport { opn } from 'https://github.com/hashrock/deno-opn/raw/v1.1.1/opn.ts'\n```\n\n\u003cbr\u003e\n\n### File\n\n*Open a file with the default image viewer.*\n\n```js\nawait open('unicorn.png');\n```\n\n\u003cbr\u003e\n\n### URL\n\n*Open a URL in the default browser.*\n\n```js\nawait open('http://sindresorhus.com');\n```\n\n\u003cbr\u003e\n\n### With\n\n*Open the target with a specific program.*\n\n```js\nawait open('http://sindresorhus.com',{ \n    with: [ 'firefox' ] \n});\n```\n\n\u003cbr\u003e\n\n### Arguments\n\n*Supply the program with arguments.*\n\n```js\nawait open('http://sindresorhus.com',{\n    with: [ 'chrome' , '--incognito' ]\n});\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cdiv align = center\u003e\n\n## Design\n\n*Internally system specific commands* \u003cbr\u003e\n*are used to start the child processes.*\n\n\u003cbr\u003e\n\n| System           | Command\n|:----------------:|:----------:\n| ![Badge Linux]   | `gio open`\n| ![Badge MacOS]   | `start`\n| ![Badge Windows] | `open`\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Contributions\n\n***PRs welcome :)***\n\n\u003cbr\u003e\n\n\u003c/div\u003e\n\n\u003c!-----------------------------------------------------------------------------\u003e\n\n[Badge License]: https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge\n[Badge Port]: https://img.shields.io/badge/Port-Hashrock-red.svg?style=for-the-badge\n[Badge Opn]: https://img.shields.io/badge/Opn-Sindre_Sorhus-green.svg?style=for-the-badge\n\n[Badge Windows]: https://img.shields.io/badge/-0078D6.svg?style=for-the-badge\u0026logo=windows\u0026logoColor=white\u0026logoWidth=200 'Windows'\n[Badge Linux]: https://img.shields.io/badge/-87CF3E.svg?style=for-the-badge\u0026logo=linux\u0026logoColor=white\u0026logoWidth=200 'Linux'\n[Badge MacOS]: https://img.shields.io/badge/-darkgray.svg?style=for-the-badge\u0026logo=apple\u0026logoColor=white\u0026logoWidth=200 'MacOS'\n\n[Sindre Sorhus]: https://sindresorhus.com 'Sorhus Website'\n\n[Hashrock]: https://github.com/hashrock 'Hashrocks GitHub Profile'\n[opn]: https://github.com/sindresorhus/opn 'The OPN Project Page'\n\n[Release]: https://github.com/hashrock/deno-opn/releases\n[License]: LICENSE 'The license of this repository'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrock%2Fdeno-opn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashrock%2Fdeno-opn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrock%2Fdeno-opn/lists"}