Three.js Loader for the X3D format.
$ npm install --save three-x3d-loader
var THREE = require('three');
var X3DLoader = require('three-x3d-loader');
X3DLoader(THREE);
console.log(typeof THREE.X3DLoader);
//=> 'function'
or just use the parser alone
var THREE = require('three');
var X3DLoader = require('three-x3d-loader');
var parsedXml = {...};
var scene = new THREE.Scene();
X3DLoader.x3dParser(THREE, parsedXml, scene /* Optional. Created if missing */, useImageTexture/* Optional. Default true */);