@types/muxml
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/muxml

Summary

This package contains type definitions for muxml (https://github.com/t1st3/muxml).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/muxml.

index.d.ts

/// <reference types="node" />

import * as sax from "sax";
import { Transform } from "stream";

declare namespace muxml {
    interface Options {
        /**
         * @default true
         */
        strict?: boolean | undefined;

        /**
         * Prettify the output. If true, output has newlines and indentation.
         *
         * @default true
         */
        pretty?: boolean | undefined;

        /**
         * When pretty is set to true, indent with either spaces or tabs.
         *
         * @default 'spaces'
         */
        indentStyle?: "spaces" | "tabs" | undefined;

        /**
         * When pretty is set to true and indentStyle is set to spaces, then indent with this number of spaces.
         *
         * @default 2
         */
        indentSpaces?: number | undefined;

        /**
         * When pretty is set to true and indentStyle is set to tabs, then indent with this number of tabs.
         *
         * @default 1
         */
        indentTabs?: number | undefined;

        /**
         * Filter XML with tags with name matching the filter.
         *
         * @default null
         */
        filter?: string | null | undefined;

        /**
         * Strip attributes from tags.
         *
         * @default false
         */
        stripAttributes?: boolean | undefined;

        /**
         * Strip CDATA tags.
         *
         * @default true
         */
        stripCdata?: boolean | undefined;

        /**
         * Strip XML comments.
         *
         * @default true
         */
        stripComments?: boolean | undefined;

        /**
         * Strip <!DOCTYPE declarations.
         *
         * @default true
         */
        stripDoctype?: boolean | undefined;

        /**
         * Strip processing instruction (like <?xml foo="blerg" ?>) tags.
         *
         * @default true
         */
        stripInstruction?: boolean | undefined;

        /**
         * @default {}
         */
        saxOptions?: sax.SAXOptions | undefined;

        /**
         * @default null
         */
        tagFilter?: string | null;
    }
}

declare function muxml(options?: muxml.Options): Transform;

export = muxml;

Additional Details

Credits

These definitions were written by Martin Badin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/muxml

Weekly Downloads

0

Version

2.0.3

License

MIT

Unpacked Size

7.08 kB

Total Files

5

Last publish

Collaborators

  • types