
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
snapdragon-capture
Advanced tools
Snapdragon plugin that adds a capture method to the parser instance.
Snapdragon plugin that adds a capture method to the parser instance.
Install with npm:
$ npm install --save snapdragon-capture
Requires snapdragon v0.9.0 or higher.
var capture = require('snapdragon-capture');
var Snapdragon = require('snapdragon');
var snapdragon = new Snapdragon();
snapdragon.use(capture());
Example
var Snapdragon = require('snapdragon');
var capture = require('snapdragon-capture');
var parser = new Snapdragon.Parser();
parser.use(capture());
Create a node of the given type using the specified regex or function.
Params
type {String}regex {RegExp|Function}: Pass the regex to use for capturing. Pass a function if you need access to the parser instance.returns {Object}: Returns the parser instance for chainingExample
parser
.capture('slash', /^\//)
.capture('comma', /^,/)
.capture('foo', function() {
var pos = this.position();
var match = this.match(/^\./);
if (match) {
return pos(this.node(match[0]));
}
});
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for advice on opening issues, pull requests, and coding standards.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. MIT
This file was generated by verb-generate-readme, v0.4.2, on February 08, 2017.
FAQs
Snapdragon plugin that adds a capture method to the parser instance.
The npm package snapdragon-capture receives a total of 2,010 weekly downloads. As such, snapdragon-capture popularity was classified as popular.
We found that snapdragon-capture 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 brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.