2.0.3 • Published 1 year ago
@types/muxml v2.0.3
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
// Type definitions for muxml 2.0
// Project: https://github.com/t1st3/muxml
// Definitions by: Martin Badin <https://github.com/martin-badin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Transform } from 'stream';
import * as sax from 'sax';
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
- Last updated: Tue, 11 Jan 2022 21:31:34 GMT
- Dependencies: @types/sax, @types/node
- Global values: none
Credits
These definitions were written by Martin Badin.