New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

check-for-match

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-for-match - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

19

lib/index.js
'use strict';
module.exports = function (p, exp) {
for (var i = 0; i < exp.length; i++) {
if (p.match(exp[i])) {
var s = p.match(exp[i]);
p = String(s);
module.exports = function (string, exp) {
return new Promise(function(resolve, reject) {
for (var i = 0; i < exp.length; i++) {
if (!string) {
reject('Input needed, "string" is: ' + undefined);
}
if (string.match(exp[i])) {
var s = string.match(exp[i]);
string = String(s);
}
}
}
return p;
resolve(string);
});
};
{
"name": "check-for-match",
"version": "0.1.0",
"version": "0.2.0",
"description": "An 'String.match(regExp)' solution",

@@ -5,0 +5,0 @@ "homepage": "",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc