js-object-to-xml
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

js-object-to-xml

Convert simple JS objects to XML

Build Status NPM version

Install

$ npm install --save js-object-to-xml

Usage

import { objectToXml } from 'js-object-to-xml';
 
const object = {
  item: {
    foo: 'Lorem',
    bar: 'Ipsum'
  }
};
 
const xml = objectToXml(object); // <item><foo>Lorem</foo><bar>Ipsum</bar></item>

License

MIT © Jonathan Svenheden

Dependents (0)

Package Sidebar

Install

npm i js-object-to-xml

Weekly Downloads

566

Version

0.5.1

License

MIT

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • jonathanp