Protect your apps from supply chain attacksInstall
Give a regex, get a robust predicate function that tests it against a string. This will work even if
RegExp.prototype is altered later.
npm install --save safe-regex-test
var regexTester = require('safe-regex-test'); var assert = require('assert'); var tester = regexTester('a'); assert.ok(tester('a')); assert.notOk(tester('b'));
Simply clone the repo,
npm install, and run
Give a regex, get a robust predicate function that tests it against a string.
The npm package safe-regex-test receives a total of 19,929,772 weekly downloads. As such, safe-regex-test popularity was classified as popular.
We found that safe-regex-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.