
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Transform stream for parsing large XML files. It is using SAX module internally. Emits objects: one object per each selected node.
$ npm install sax-stream
Use as any transform stream: pipe request or file stream to it, pipe it downstream to another
transform/writeable stream or handle data
event.
var saxStream = require('sax-stream');
request('http://blog.npmjs.org/rss')
.pipe(saxStream({
strict: true,
tag: 'item'
})
.on('data', function(item) {
console.log(item);
});
Create passing options object:
tag
- name of the tag to select objects from XML file, an Array of tag names can be used - when multiple tags are specified stream pushes { tag, record }
tupleshighWaterMark
- size of internal transform stream buffer - defaults to 350 objectsstrict
- default to false, if true
makes sax parser to accept valid XML onlytrim
, normalize
, lowercase
, xmlns
, position
, strictEntities
, noscript
- passed to sax parserMIT
FAQs
Transform stream implemented using SAX parser
The npm package sax-stream receives a total of 6,848 weekly downloads. As such, sax-stream popularity was classified as popular.
We found that sax-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.