kramer

Converts Javascript Objects to Xml

npm install kramer
3 downloads in the last month

Kramer

A Javascript Object to XML Parser

Install

npm install kramer

Usage

var kramer = require('kramer');

var doc = {
  _: { version: '1', build: '2' },
  foo: 'bar'
}

var xml = kramer.parse('root', doc);

console.log(xml);

Results

<root version='1' build='2'>
  <foo>bar</foo>
</root>
npm loves you