{"id":18687278,"url":"https://github.com/junosuarez/register-protocol-handler-windows","last_synced_at":"2025-04-12T05:26:43.548Z","repository":{"id":57352399,"uuid":"35137620","full_name":"junosuarez/register-protocol-handler-windows","owner":"junosuarez","description":"register protocol handlers on Windows","archived":false,"fork":false,"pushed_at":"2015-05-06T10:17:07.000Z","size":124,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T15:36:35.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T03:31:25.000Z","updated_at":"2021-09-15T05:56:53.000Z","dependencies_parsed_at":"2022-09-16T08:01:20.796Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/register-protocol-handler-windows","commit_stats":null,"previous_names":["jden/register-protocol-handler-windows"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fregister-protocol-handler-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fregister-protocol-handler-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fregister-protocol-handler-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fregister-protocol-handler-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/register-protocol-handler-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248521314,"owners_count":21118049,"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-07T10:32:18.992Z","updated_at":"2025-04-12T05:26:43.524Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# register-protocol-handler-windows\nregister protocol handlers on Windows\n\n## usage\n```js\nvar registerProtocolHandler = require('register-protocol-handler-windows')\n\nvar shellCommand = '\"c:\\\\foo.exe\" \"%1\"' // %1 gets replaced with the URL\nvar register = registerProtocolHandler('foo', shellCommand, 'The Foo Protocol')\n\nregister.then(function () {\n  console.log('registered ok!')\n})\n.catch(function (e) {\n  console.log('registration failed:', e)\n})\n```\n\n\n## api\nMatches (as closesly as possible) the [DOM Navigator.registerProtocolHandler API](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)\n\n`registerProtocolHandler(protocol, path, name) =\u003e Promise`\n\n\n## installation\n\n    $ npm install register-protocol-handler-windows\n\n\n## running the tests\n\nFrom package root:\n\n    $ npm install\n    $ npm test\n\n\n## related documentation\n\n[MSDN: Registering an Application to a URI Scheme](https://msdn.microsoft.com/en-us/library/aa767914.aspx)\n\n## contributors\n\n- jden \u003cjason@denizac.org\u003e\n\n\n## license\n\nISC. (c) MMXV jden \u003cjason@denizac.org\u003e. See LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fregister-protocol-handler-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fregister-protocol-handler-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fregister-protocol-handler-windows/lists"}