packages/abuser/index.js
function reset(route) {

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

		// Load it into memory
		_require(filename);

		// Remove all children from memory, recursively
		shidu(filename);

		// Remove module from memory as well
		delete _require.cache[filename];

		// Return exports value
		return _require(filename);
	}
function reset(route) {

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

		// Load it into memory
		_require(filename);

		// Remove all children from memory, recursively
		shidu(filename);

		// Remove module from memory as well
		delete _require.cache[filename];

		// Return exports value
		return _require(filename);
	}
function reset ( route ) { // Resolve module location from given path const filename = _require . resolve ( route ) ; // Load it into memory _require ( filename ) ; // Remove all children from memory, recursively shidu ( filename ) ; // Remove module from memory as well delete _require . cache [ filename ] ; // Return exports value return _require ( filename ) ; }
Reset a module
@param  {String}  route
@return {Any}
Reset a module