strsearch2regexp

0.1.1 • Public • Published

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

npm add --save strsearch2regexp

Usage

const strsearch2regexp = require('strsearch2regexp')

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

Readme

Keywords

none

Package Sidebar

Install

npm i strsearch2regexp

Weekly Downloads

133

Version

0.1.1

License

MIT

Unpacked Size

2.71 kB

Total Files

4

Last publish

Collaborators

  • plepe