regex-ok

0.1.1 • Public • Published

regex-ok 👍

test it

lets you know if your JS RegExp is ok (not necessarily great)

install

npm install regex-ok

use

// import esm
import isRegexOk from 'regex-ok';

// or require cjs
const isRegexOk = require('regex-ok');

// pass a RegExp
let re = /^yee$/;
let ok = isRegexOk(re);  // true

// or pass a string
let re = '^yee$'
let ok = isRegexOk(re);  // true

Readme

Keywords

Package Sidebar

Install

npm i regex-ok

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

2.92 kB

Total Files

4

Last publish

Collaborators

  • ctcpip