
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Regex Parser (fork from regexp)
Regex parser based on descriptions in http://www.javascriptkit.com/javatutors/redev2.shtml
npm install regexp2
var regexp = require('regexp2').parse;
var res = regexp('[a-z]+');
import regexp from 'regexp2';
var res = regexp(/[a-z]+/);
import { parse } from 'regexp2';
const regexp = parse;
var res = regexp(/[a-z]+/);
assert.deepEqual(res, { type: 'match',
offset: 0,
text: '[a-z]+',
body:
[ { type: 'quantified',
offset: 0,
text: '[a-z]+',
body:
{ type: 'charset',
offset: 0,
text: '[a-z]',
invert: false,
body:
[ { type: 'range',
offset: 1,
text: 'a-z',
start: 'a',
end: 'z' } ] },
quantifier:
{ type: 'quantifier',
offset: 5,
text: '+',
min: 1,
max: Infinity,
greedy: true } } ] })
To run tests:
$ npm install
$ npm test
This will also automatically compile index.js
.
The key source files are src/grammer.pegjs
which is compiled using pegjs and src/index.js
which is a CommonJS module with a special additional pseudo import
statement.
MIT
FAQs
Regex Parser (fork from regexp)
The npm package regexp2 receives a total of 9 weekly downloads. As such, regexp2 popularity was classified as not popular.
We found that regexp2 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
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.