【文件属性】:
文件名称:register-protocol-handler-windows:在 Windows 上注册协议处理程序
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-07 22:27:52
JavaScript
注册协议处理程序窗口
在 Windows 上注册协议处理程序
用法
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 ( 'registrat
【文件预览】:
register-protocol-handler-windows-master
----test()
--------test.js(178B)
----LICENSE.md(741B)
----README.md(1KB)
----.gitignore(23B)
----index.js(2KB)
----package.json(608B)