popsicle-xml
v0.1.0
Published
A dirty plugin that parses XML responses because why would you XML
Downloads
4
Maintainers
Readme
Popsicle XMl
Quicky and dirty XML parsing for popsicle. Based on https://github.com/blakeembrey/popsicle-status.
Installation
npm install popsicle-xml --save
Usage
With a body full of XML...
var request = require('popsicle')
var xml = require('popsicle-xml')
request('/users.json').use(xml());
Note that it will fail in terrible ways if the body is not XML. Maybe someday we'll actually catch those errors or be more magical but we're lazy. Also needs tests. Feel free to PR.
License
MIT