# strsearch2regexp

> Converts a search string to a unicode regexp with character variants (e.g. "foo bar" -> "f[oöó][oöó].*b[aäá]r")

Latest version **0.1.1** (published 2020-06-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-06-09 |
| First published | 2019-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stephan Bösch-Plepelits |
| Maintainers | plepe |

## Links

- npm: https://www.npmjs.com/package/strsearch2regexp
- Repository: https://github.com/plepe/strsearch2regexp
- Homepage: https://github.com/plepe/strsearch2regexp#readme
- Issues: https://github.com/plepe/strsearch2regexp/issues
- npm.io page: https://npm.io/package/strsearch2regexp

## Recent versions

- 0.1.1 (latest) — 2020-06-09
- 0.1.0 — 2019-01-30

## README

# strsearch2regexp
Converts a search string to a unicode regexp with character variants (e.g. "foo bar" -> "f[oöó][oöó].*b[aäá]r")

This code is far from complete. Pull requests are very welcome!

# Installation
```sh
npm add --save strsearch2regexp
```

# Usage
```js
const strsearch2regexp = require('strsearch2regexp')

console.log(strsearch2regexp('foo bar'))
// f[oòóôõöø]o.*b[aàáâãäå]r
```

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