An open API service indexing awesome lists of open source software.

https://github.com/strugee/node-has-scheme

Test if a URL has a scheme
https://github.com/strugee/node-has-scheme

hacktoberfest javascript nodejs tiny url url-scheme

Last synced: about 2 months ago
JSON representation

Test if a URL has a scheme

Awesome Lists containing this project

README

          

# node-has-scheme

[![Build Status](https://travis-ci.org/strugee/node-has-scheme.svg?branch=master)](https://travis-ci.org/strugee/node-has-scheme)
[![Coverage Status](https://coveralls.io/repos/github/strugee/node-has-scheme/badge.svg?branch=master)](https://coveralls.io/github/strugee/node-has-scheme?branch=master)
[![Greenkeeper badge](https://badges.greenkeeper.io/strugee/node-has-scheme.svg)](https://greenkeeper.io/)

## Install

```
npm install has-scheme
```

## Usage

```js
var hasScheme = require('has-scheme')
hasScheme('example.com'); // `false`
hasScheme('http://example.com'); // `true`
```

## Version support

Pretty much any Node under the sun, but the tests only run on 4+.

## Author

AJ Jordan

## License

MIT