npm.io
1.0.6 • Published 2 years ago

@types/jsontoxml

Licence
MIT
Version
1.0.6
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jsontoxml

Summary

This package contains type definitions for jsontoxml (https://github.com/soldair/node-jsontoxml).

Details

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

index.d.ts

declare namespace jsontoxml {
    function escape(str: string): string;
    function cdata(str: string): string;
    interface JsonToXmlOptions {
        escape?: boolean | undefined;
        xmlHeader?: boolean | { standalone?: boolean | undefined } | undefined;
        docType?: string | undefined;
        prettyPrint?: boolean | undefined;
        indent?: string | undefined;
        removeIllegalNameCharacters?: boolean | undefined;
        html?: boolean | undefined;
    }
}

declare function jsontoxml(data: any, options?: jsontoxml.JsonToXmlOptions): string;

export = jsontoxml;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by benstevens48.