Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
requires-regex
Advanced tools
Regular expressions for matching node.js require statements.
npm i requires-regex --save
npm test
var re = require('requires-regex');
re().exec('var isDir = require(\'is-directory\');');
//=>
// [ 'var isDir = require(\'is-directory\')',
// 'var isDir = ',
// 'isDir',
// 'is-directory',
// index: 0,
// input: 'var isDir = require(\'is-directory\');' ]
'var path = require(\'path\');\nvar list = require(\'dirs\');'.match(re());
//=> [ 'var path = require(\'path\')', 'var list = require(\'dirs\')' ]
re().test('require(\'foo\');');
//=> true
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 20, 2014.
FAQs
Regular expression for matching javascript require statements.
The npm package requires-regex receives a total of 18,986 weekly downloads. As such, requires-regex popularity was classified as popular.
We found that requires-regex 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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.