🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/sax-stream

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sax-stream

TypeScript definitions for sax-stream

ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.3.5
Version published
Weekly downloads
269
-3.58%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/sax-stream

Summary

This package contains type definitions for sax-stream (https://github.com/melitele/sax-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sax-stream.

index.d.ts

/// <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 (&amp;, &apos;, &gt;, &lt;, and &quot;).
         */
        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;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Michael de Wit.

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

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.

Install

Related posts