@juigorg/porro-eius

2.0.9 • Public • Published

@juigorg/porro-eius Version Badge

github actions coverage License Downloads

npm badge

Give a regex, get a robust predicate function that tests it against a string. This will work even if RegExp.prototype is altered later.

Getting started

npm install --save @juigorg/porro-eius

Usage/Examples

var regexTester = require('@juigorg/porro-eius');
var assert = require('assert');

var tester = regexTester('a');
assert.ok(tester('a'));
assert.notOk(tester('b'));

Tests

Simply clone the repo, npm install, and run npm test

Readme

Keywords

Package Sidebar

Install

npm i @juigorg/porro-eius

Weekly Downloads

13

Version

2.0.9

License

MIT

Unpacked Size

27.1 kB

Total Files

32

Last publish

Collaborators

  • tiengiangb47