require-xml

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

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