# domain-matcher

> [![Build Status](https://api.travis-ci.org/AurityLab/domain-matcher.svg?branch=master)](https://travis-ci.org/AurityLab/domain-matcher) [![npm](https://img.shields.io/npm/v/recaptcha-v3.svg)](https://www.npmjs.com/package/domain-matcher) [![npm type defin

Latest version **1.0.0** (published 2019-01-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install domain-matcher
pnpm add domain-matcher
yarn add domain-matcher
bun add domain-matcher
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-05 |
| First published | 2019-01-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | AurityLab |
| Maintainers | wipeair |
| Keywords | domain, matcher, wildcard |

## Links

- npm: https://www.npmjs.com/package/domain-matcher
- Repository: https://github.com/AurityLab/domain-matcher
- Issues: https://github.com/AurityLab/domain-matcher/issues
- npm.io page: https://npm.io/package/domain-matcher

## Recent versions

- 1.0.0 (latest) — 2019-01-05

## README

# Domain matcher
[![Build Status](https://api.travis-ci.org/AurityLab/domain-matcher.svg?branch=master)](https://travis-ci.org/AurityLab/domain-matcher)
[![npm](https://img.shields.io/npm/v/recaptcha-v3.svg)](https://www.npmjs.com/package/domain-matcher) 
[![npm type definitions](https://img.shields.io/npm/types/recaptcha-v3.svg)](https://www.npmjs.com/package/domain-matcher)

Check if given domain/url matches against domain patterns.

## Features
* Only ~3 kB (**~1.2 kB gzipped**).
* Suitable for browser environments.
* No additional dependencies.

## Install
With NPM:
```bash
$ npm install domain-matcher
```

With Yarn:
```bash
$ yarn add domain-matcher
```

## Usage
```javascript
import { match } from 'domain-matcher'

match('domain.matcher.com', '*.matcher.com') // => true
match('matcher.com', '*.matcher.com') // => false
match('matcher.com', '*.matcher.com', '*.com') // => false (Because '*.com' matches)
```

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