require-xml

require('require-xml') lets you load XML files using require syntax. For example: var config = require('./config.xml');

npm install require-xml
3 downloads in the last day
19 downloads in the last week
88 downloads in the last month

See better-require.

Install

npm install require-xml

Usage

require('require-xml');
var data = require('./config.xml');

Reference

http://nodejs.org/api/all.html#all_require_extensions

npm loves you