@datns/render-xml
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

@datns/renderXML

React component for displaying XML serialized and collapsable as dom element.

Usage

import RenderXML from '@datns/renderXML'
// If you're using Immutable.js: `npm i --save immutable`
import { Map } from 'immutable'

// Inside a React component:
const xmlString = '<References attribue="test"><Node>Foo</Node></References>'

<RenderXML data={xmlString} />

Available Properties

required:

  • data: xml string

optional:

  • collapseStringsAfterLength: number after which strings are supposed to be cut off
  • theme: 'dark'

Setup

yarn

Build

yarn build

License

@datns/renderXML is MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @datns/render-xml

Weekly Downloads

0

Version

0.4.2

License

MIT

Unpacked Size

21.5 kB

Total Files

20

Last publish

Collaborators

  • nerdshore-development