0.0.1 • Published 1 year ago

custom-protocol-detection-pkg v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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:johndoe@somewhere.com",
  () => {
    console.log("failed")
  },
  () => {
    console.log("successed")
  },
  () => {
    console.log("unsupported")
  }
);

License

MIT @hemengke1997

0.0.1

1 year ago