# has-scheme

> Test if a URL has a scheme

Latest version **1.0.0** (published 2017-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-scheme
pnpm add has-scheme
yarn add has-scheme
bun add has-scheme
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-08 |
| First published | 2017-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | AJ Jordan |
| Maintainers | strugee |
| Keywords | test, url, scheme |

## Links

- npm: https://www.npmjs.com/package/has-scheme
- Repository: https://github.com/strugee/node-has-scheme
- Homepage: https://github.com/strugee/node-has-scheme#readme
- Issues: https://github.com/strugee/node-has-scheme/issues
- npm.io page: https://npm.io/package/has-scheme

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-10-08

## 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 <alex@strugee.net>

## License

MIT

---
_Source: https://npm.io/package/has-scheme · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
