
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@types/sax-stream
Advanced tools
TypeScript definitions for sax-stream
npm install --save @types/sax-stream
This package contains type definitions for sax-stream (https://github.com/melitele/sax-stream).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sax-stream.
/// <reference types="node" />
import stream = require("stream");
declare namespace saxStream {
interface Options {
/**
* 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 }` tuples.
*/
tag: string | readonly string[];
/**
* Size of internal transform stream buffer - defaults to 350 objects.
*/
highWaterMark?: number | undefined;
/**
* Default to false, if true makes sax parser to accept valid XML only.
*/
strict?: boolean | undefined;
/**
* Whether or not to trim text and comment nodes.
*/
trim?: boolean | undefined;
/**
* If true, then turn any whitespace into a single space.
*/
normalize?: boolean | undefined;
/**
* If true, then lowercase tag names and attribute names in loose mode, rather than uppercasing them.
*/
lowercase?: boolean | undefined;
/**
* If true, then namespaces are supported.
*/
xmlns?: boolean | undefined;
/**
* If false, then don't track line/col/position.
*/
trackPosition?: boolean | undefined;
/**
* If true, only parse predefined XML entities (&, ', >, <, and ").
*/
strictEntities?: boolean | undefined;
/**
* Whether to support the noscript option of sax.js
*/
noscript?: boolean | undefined;
}
}
declare function saxStream(options: saxStream.Options): stream.Transform;
export = saxStream;
These definitions were written by Michael de Wit.
FAQs
TypeScript definitions for sax-stream
The npm package @types/sax-stream receives a total of 267 weekly downloads. As such, @types/sax-stream popularity was classified as not popular.
We found that @types/sax-stream 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.