# calmcard

> not-so-wild wildcard string matching

Latest version **0.1.1** (published 2014-07-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install calmcard
pnpm add calmcard
yarn add calmcard
bun add calmcard
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-07-04 |
| First published | 2014-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Leon Weidauer |
| Maintainers | lnwdr |
| Keywords | wildcard, matching, pattern, string, glob |

## Links

- npm: https://www.npmjs.com/package/calmcard
- Repository: git@github.com:lnwdr/calmcard
- Homepage: https://github.com/lnwdr/calmcard
- Issues: https://github.com/lnwdr/calmcard/issues
- npm.io page: https://npm.io/package/calmcard

## 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

- 0.1.1 (latest) — 2014-07-04
- 0.1.0 — 2014-07-04

## README

calmcard
========

**not-so-wild wildcard string matching**

Calmcard provides a simple string pattern matching with `*` as the only special character which is a placeholder for
any sequence of characters, unless it is escaped.

Calmcard was made to have a `glob` like tool for arbitrary strings where slashes have no special meaning. It also does
explicitly not use regular expressions because of speed, proper escaping and because writing regular expression strings
in JavaScript gets messy and unreadable very quick.

## Examples

* `foo*bar` will match "foo123bar"
* `foo\*bar` will match "foo\*bar" but not "foo123bar"

## Installation

Currently, calmcard is built for node.js and available via NPM.

    npm install calmcard

## Usage

```js
    var calmcard = require("calmcard");

    calmcard("foo*bar", "foo123bar"); // -> true
    calmcard("foo*bar", "foobar"); // -> false
```

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