packages/abuser/index.js
function override(route, thing) {

		// Resolve module location from given path
		const filename = _require.resolve(route);

		// Load it into memory
		_require(filename);

		// Override exports with new value
		_require.cache[filename].exports = thing;

		// Return exports value
		return _require(filename);
	}
function override(route, thing) {

		// Resolve module location from given path
		const filename = _require.resolve(route);

		// Load it into memory
		_require(filename);

		// Override exports with new value
		_require.cache[filename].exports = thing;

		// Return exports value
		return _require(filename);
	}
function override ( route , thing ) { // Resolve module location from given path const filename = _require . resolve ( route ) ; // Load it into memory _require ( filename ) ; // Override exports with new value _require . cache [ filename ] . exports = thing ; // Return exports value return _require ( filename ) ; }
Override a module with any given thing
@param  {String} route
@param  {Any}    thing
@return {Any}             New exports of the module
Override a module with any given thing