This is the Three.js OBJExporter "extras" package found in the Three.js source (example).
It's loosely based on the three-orbit-controls package.
var OBJExporter = require('three-obj-exporter');
var exporter = new OBJExporter();
var result = exporter.parse(scene);
See the offical Three.js example for more information and usage.