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

0.0.32 • Public • Published

Installation

npm install --save @types/xmltojson

Summary

This package contains type definitions for xmltojson (https://github.com/metatribal/xmlToJSON).

Details

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

index.d.ts

export = xmltojson;

declare namespace xmltojson {
    function grokType(sValue: any): any;
    function parseString(xmlString: string, opt: Options): Object;
    function parseXml(oXMLParent: Document, opt: Options): Object;
    function xmlToString(xmlDoc: Document): string;
    function stringToXml(xmlString: string): Document;

    interface Options {
        mergeCDATA?: boolean | undefined;
        grokAttr?: boolean | undefined;
        grokText?: boolean | undefined;
        normalize?: boolean | undefined;
        xmlns?: boolean | undefined;
        namespaceKey?: string | undefined;
        textKey?: string | undefined;
        valueKey?: string | undefined;
        attrKey?: string | undefined;
        cdataKey?: string | undefined;
        attrsAsObject?: boolean | undefined;
        stripAttrPrefix?: boolean | undefined;
        stripElemPrefix?: boolean | undefined;
        childrenAsArray?: boolean | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Travis Crowe.

/@types/xmltojson/

    Package Sidebar

    Install

    npm i @types/xmltojson

    Weekly Downloads

    189

    Version

    0.0.32

    License

    MIT

    Unpacked Size

    4.44 kB

    Total Files

    5

    Last publish

    Collaborators

    • types