'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;

'use strict';

// MODULES //

var merge = require( '@stdlib/utils/merge' );
var NS = require( '@stdlib/regexp' );


// ASSIGN //

/**
* Assigns modules to a namespace.
*
* @private
* @param {Object} ns - namespace
* @returns {Object} input namespace
*
* @example
* var ns = {};
* assign( ns );
* // ns => {...}
*/
function assign( ns ) {
	return merge( ns, NS );
} // end FUNCTION assign()


// EXPORTS //

module.exports = assign;

Use RegExp namespace