
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
The is-regexp npm package is a utility that allows you to check if a given value is a regular expression. This can be useful in various scenarios where you need to validate or handle regular expressions specifically.
Check if a value is a regular expression
This feature allows you to determine if a given value is a regular expression. The function returns true if the value is a regular expression and false otherwise.
const isRegexp = require('is-regexp');
console.log(isRegexp(/abc/)); // true
console.log(isRegexp('abc')); // false
The lodash.isregexp package is a part of the Lodash library that provides a similar functionality to is-regexp. It checks if a value is classified as a RegExp object. Compared to is-regexp, lodash.isregexp is part of a larger utility library, which means it can be more convenient if you are already using Lodash in your project.
The is-regex package is another utility that checks if a value is a regular expression. It provides similar functionality to is-regexp but is maintained by a different author and may have different performance characteristics or additional features.
The is package is a comprehensive type-checking library that includes a method for checking if a value is a regular expression. It offers a broader range of type-checking utilities compared to is-regexp, making it a more versatile choice if you need to perform various type checks.
Check if a value is a regular expression
$ npm install is-regexp
import isRegexp from 'is-regexp';
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
instanceof
instead of this package?FAQs
Check if a value is a regular expression
The npm package is-regexp receives a total of 10,892,712 weekly downloads. As such, is-regexp popularity was classified as popular.
We found that is-regexp 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.