Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

requires-regex

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requires-regex - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js
'use strict';
module.exports = function() {
return /(?:(['"])[^\1]*require[^\1]*\1)|\s*(?:(?:var|const|let)?\s*([\s\S]+?)\s*=\s*)?require\((['"])((?:@([^/]+?)\/)?([^/]+?)|[\s\S]+?)\3\);?/g;
return /(?:(['"])\s*[_.\w/$]*?\s*require\s*[^\1]*?\s*\1)|\s*(?:(?:var|const|let)?\s*([_.\w/$]+?)\s*=\s*)?require\((['"])((?:@([^/]+?)\/)?([^/]+?)|[-.@\w/$]+?)\3\);?/g;
};
{
"name": "requires-regex",
"description": "Regular expression for matching javascript require statements.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/jonschlinkert/requires-regex",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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