1.0.6 • Published 2 years ago

@types/jsontoxml v1.0.6

Weekly downloads
3,251
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for jsontoxml 1.0
// Project: https://github.com/soldair/node-jsontoxml, https://github.com/ken-franken/node-jsontoxml
// Definitions by: benstevens48 <https://github.com/benstevens48>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 16 Dec 2021 22:32:00 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by benstevens48.

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

6 years ago

1.0.0

7 years ago