custom-protocol-detection-pkg
v0.0.1
Published
npm package of custom-protocol-detection
Downloads
6
Readme
custom-protocol-detection-pkg
npm package of custom-protocol-detection.
Explain
the lib is npm package of custom-protocol-detection. you can use it check custom protocol whether installed in your device. If protocol is installed, it will be launch via broswer.
this is online demo. It will open your eamil app. try
Install
npm i custom-protocol-detection-pkg
Usage
import cpd from "custom-protocol-detection-pkg";
cpd(
"mailto:[email protected]",
() => {
console.log("failed")
},
() => {
console.log("successed")
},
() => {
console.log("unsupported")
}
);
License
MIT @hemengke1997