is-url-protocol-without-slashes
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

is-url-protocol-without-slashes

install size Coverage Status

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 
$ npm install is-url-protocol-without-slashes
 
# Yarn 
$ yarn add is-url-protocol-without-slashes

Usage

const isUrlProtocolWithoutSlashes = require('is-url-protocol-without-slashes');
 
isUrlProtocolWithoutSlashes('mailto:info@mail.com');
//=> true
 
isUrlProtocolWithoutSlashes('tel:9008007060');
//=> true
 
isUrlProtocolWithoutSlashes('http://test.com');
//=> false
 
isUrlProtocolWithoutSlashes('tg://addstickers?set=example');
//=> false

License

MIT © 2016-2019 Nikita Bystrov (Arttse)

/is-url-protocol-without-slashes/

    Package Sidebar

    Install

    npm i is-url-protocol-without-slashes

    Weekly Downloads

    9

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • arttse