co-xml2js
1.0.0 • Public • Published co-node-xml2js
node-xml2js with co
Usage
install from npm
npm install co-xml2js
import xml2js from "xml2js";
import co from "co";
co(function *() {
var xml = new xml2js.Builder().buildObject({
xml: {
div: "text"
}
});
var json;
json = yield xml2js.parseString(xml);
var parser = new xml2js.Parser();
json = yield parser.parseString(xml);
});
Dependencies (1)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads