@types/xmltojson
@types/xmltojson
npm i @types/xmltojson
@types/xmltojson

@types/xmltojson

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

0.0.29 (see all)License:MITTypeScript:Built-In
npm i @types/xmltojson
Readme

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

// Type definitions for xmltojson
// Project: https://github.com/metatribal/xmlToJSON
// Definitions by: Travis Crowe <https://github.com/traviscrowe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped



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: Fri, 02 Jul 2021 17:02:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Travis Crowe.

Downloads/wk

189

GitHub Stars

40.9K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

635

OPEN PRs

203
VersionTagPublished
0.0.29
latest
1yr ago
0.0.29
ts4.7
1yr ago
0.0.29
ts4.6
1yr ago
0.0.29
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate