query-to-regexp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

query-to-regexp

query-to-regexp converts the user-input string to regexp.

Examples

const { toRegExp } = require('query-to-regexp');

const reg = toRegExp('Dog "Brown fox" -Cat');
console.log(reg.test('The quick brown fox jumps over the lazy dog'));
// => true

Readme

Keywords

none

Package Sidebar

Install

npm i query-to-regexp

Weekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

6.96 kB

Total Files

6

Last publish

Collaborators

  • ofk