JSPM

is-url-protocol-without-slashes

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q52601F
  • License MIT

Checks for the presence of URL protocol without a slashes (colon-slash-slash)

Package Exports

  • is-url-protocol-without-slashes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-url-protocol-without-slashes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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)