'use strict';

var NS = {};


// MODULES //

var getKeys = require( 'object-keys' ).shim();
NS.RE_EOL = require( '@stdlib/regexp/eol' );
NS.RE_DIRNAME = require( '@stdlib/regexp/dirname' );
NS.RE_DIRNAME_POSIX = require( '@stdlib/regexp/dirname-posix' );
NS.RE_DIRNAME_WINDOWS = require( '@stdlib/regexp/dirname-windows' );
NS.RE_EXTNAME = require( '@stdlib/regexp/extname' );
NS.RE_EXTNAME_POSIX = require( '@stdlib/regexp/extname-posix' );
NS.RE_EXTNAME_WINDOWS = require( '@stdlib/regexp/extname-windows' );
NS.RE_FUNCTION_NAME = require( '@stdlib/regexp/function-name' );
NS.RE_REGEXP = require( '@stdlib/regexp/regexp' );


// VARIABLES //

var KEYS = getKeys( NS );


// ASSIGN //

/**
* Assigns modules to a namespace.
*
* @private
* @param {Object} ns - namespace
* @returns {Object} input namespace
*
* @example
* var ns = {};
* assign( ns );
* // ns => {...}
*/
function assign( ns ) {
	var key;
	var i;
	for ( i = 0; i < KEYS.length; i++ ) {
		key = KEYS[ i ];
		ns[ key ] = NS[ key ];
	}
	return ns;
} // end FUNCTION assign()


// EXPORTS //

module.exports = assign;

@@ -12,23 +12,8 @@
 ';%0A%0A
-var NS = %7B%7D;%0A%0A%0A
 // M
@@ -31,627 +31,84 @@
 var 
-getKeys = require( 'object-keys' ).shim();%0ANS.RE_EOL = require( '@stdlib/regexp/eol' );%0ANS.RE_DIRNAME = require( '@stdlib/regexp/dirname' );%0ANS.RE_DIRNAME_POSIX = require( '@stdlib/regexp/dirname-posix' );%0ANS.RE_DIRNAME_WINDOWS = require( '@stdlib/regexp/dirname-windows' );%0ANS.RE_EXTNAME = require( '@stdlib/regexp/extname' );%0ANS.RE_EXTNAME_POSIX = require( '@stdlib/regexp/extname-posix' );%0ANS.RE_EXTNAME_WINDOWS = require( '@stdlib/regexp/extname-windows' );%0ANS.RE_FUNCTION_NAME = require( '@stdlib/regexp/function-name' );%0ANS.RE_REGEXP = require( '@stdlib/regexp/regexp' );%0A%0A%0A// VARIABLES //%0A%0Avar KEYS = getKeys( NS
+merge = require( '@stdlib/utils/merge' );%0Avar NS = require( '@stdlib/regexp'
  );%0A
@@ -336,121 +336,30 @@
  %7B%0A%09
-var key;%0A%09var i;%0A%09for ( i = 0; i %3C KEYS.length; i++ ) %7B%0A%09%09key = KEYS%5B i %5D;%0A%09%09ns%5B key %5D = NS%5B key %5D;%0A%09%7D%0A%09return ns
+return merge( ns, NS )
 ;%0A%7D 

Use RegExp namespace