require-xml

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

npm install require-xml
4 downloads in the last day
11 downloads in the last week
67 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