Socket
Socket
Sign inDemoInstall

xml-objects

Package Overview
Dependencies
13
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xml-objects

Streaming wrapper around xml2js


Version published
Maintainers
1
Install size
464 kB
Created

Readme

Source

xml-objects

version version js-standard-style npm downloads

Streaming wrapper around xml2js

Pipe fully formed bits of xml to xml-objects to parse into javascript objects. Works great with xml-nodes.

Install

With npm do:

npm install xml-objects

Example

var request = require('request');
var xmlNodes = require('xml-nodes');
var xmlObjects = require('xml-objects');

request('http://news.yahoo.com/rss/entertainment')
  .pipe(xmlNodes('item'))
  .pipe(xmlObjects({explicitRoot: false, explicitArray: false, mergeAttrs: true}))
  .on('data', function(data) {
    console.log(data.title);
  });

License

MIT

FAQs

Last updated on 31 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc