is-url-protocol-without-slashes
Node.js module. Checks for the presence of URL protocol without a slashes (colon-slash-slash)
Version 2 requires Node.js >= 6.13.
Install
$ npm install is-url-protocol-without-slashes
$ yarn add is-url-protocol-without-slashes
Usage
const isUrlProtocolWithoutSlashes = require('is-url-protocol-without-slashes');
isUrlProtocolWithoutSlashes('mailto:info@mail.com');
isUrlProtocolWithoutSlashes('tel:9008007060');
isUrlProtocolWithoutSlashes('http://test.com');
isUrlProtocolWithoutSlashes('tg://addstickers?set=example');
License
MIT © 2016-2019 Nikita Bystrov (Arttse)