# have-matching

> Compare two values with various paramaters.

Latest version **1.0.3** (published 2023-02-08) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install have-matching
pnpm add have-matching
yarn add have-matching
bun add have-matching
```

## 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.3 |
| Published | 2023-02-08 |
| First published | 2023-02-07 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.17.1 |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rodrigo Campos |
| Maintainers | rodrigocampos |
| Keywords | compare, string, values, numbers, words |

## Links

- npm: https://www.npmjs.com/package/have-matching
- Repository: https://github.com/RodrigoCamposD/have-matching
- Homepage: https://github.com/RodrigoCamposD/have-matching#readme
- Issues: https://github.com/RodrigoCamposD/have-matching/issues
- npm.io page: https://npm.io/package/have-matching

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2023-02-08
- 1.0.2 — 2023-02-07
- 1.0.1 — 2023-02-07
- 1.0.0 — 2023-02-07

## README

# have-matching

Compare two values with some options.

[![NPM][nodeio-img]][npm-url]

[![Node Version][node-img]][npm-url] [![NPM Version][verion-img]][npm-url] [![NPM Downloads][download-img]][npm-url]

## Install

```bash
npm install have-matching
```

## Usage

```javascript
const haveMatching = require("have-matching");
haveMatching("t5est", "tSet5")); // true
```

## Tests

```bash
npm test
```

## Examples

```javascript
haveMatching("test", "tSet5")); // false
haveMatching("t5est", "tSet5")); // true
haveMatching(889, "988")); // true
haveMatching("test", "tSet/8", { onlyLetters: true })); // true
haveMatching("test", "tSet8", { onlyNumbers: true })); // false
haveMatching("abc889", "98xyz8", { onlyNumbers: true })); // true
haveMatching("test", "tesT", { caseSensitive: true })); // false
haveMatching("test8", "tSe8t//.", {
    onlyNumbers: true,
    onlyLetters: true,
  })
); // true
haveMatching("test", ["te", "st"])); // false
haveMatching("test", ["tSet", "st"])); // true
haveMatching(8, ["88", "test"])); // false
haveMatching("test", "Test", { orderMatter: true })); // true

haveMatching("test8", "test8", {
    orderMatter: true,
    onlyNumbers: true,
    caseSensitive: true,
    onlyLetters: true,
  })
); // true
```

[npm-url]: https://npmjs.org/package/have-matching
[license-url]: https://github.com/RodrigoCamposD/have-matching/blob/main/LICENSE.md
[vulnerabilities-url]: https://snyk.io/advisor/npm-package/have-matching
[libraries-url]: https://libraries.io/npm/have-matching
[nodeio-img]: https://nodei.co/npm/have-matching.png?downloads=true&downloadRank=true&stars=true
[node-img]: https://img.shields.io/node/v/have-matching?style=for-the-badge
[libraries-img]: https://img.shields.io/librariesio/release/npm/have-matching?style=for-the-badge
[quality-img]: https://img.shields.io/npms-io/quality-score/have-matching?style=for-the-badge
[verion-img]: https://img.shields.io/npm/v/have-matching?style=for-the-badge
[download-img]: https://img.shields.io/npm/dt/have-matching?style=for-the-badge
[node-version-img]: https://img.shields.io/node/v/have-matching?style=for-the-badge
[license-img]: https://img.shields.io/npm/l/have-matching?style=for-the-badge
[vulnerabilities-img]: https://img.shields.io/snyk/vulnerabilities/npm/have-matching?style=for-the-badge

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