register-protocol-handler-windows
v1.0.1
Published
register protocol handlers on Windows
Downloads
13
Maintainers
Readme
register-protocol-handler-windows
register protocol handlers on Windows
usage
var registerProtocolHandler = require('register-protocol-handler-windows')
var shellCommand = '"c:\\foo.exe" "%1"' // %1 gets replaced with the URL
var register = registerProtocolHandler('foo', shellCommand, 'The Foo Protocol')
register.then(function () {
console.log('registered ok!')
})
.catch(function (e) {
console.log('registration failed:', e)
})
api
Matches (as closesly as possible) the DOM Navigator.registerProtocolHandler API
registerProtocolHandler(protocol, path, name) => Promise
installation
$ npm install register-protocol-handler-windows
running the tests
From package root:
$ npm install
$ npm test
related documentation
MSDN: Registering an Application to a URI Scheme
contributors
- jden [email protected]
license
ISC. (c) MMXV jden [email protected]. See LICENSE.md