function factory( options, clbk ) {
	var opts;
	var err;
	opts = merge( {}, defaults );
	err = validate( opts, options );
	if ( err ) {
		throw err;
	}
	if ( !isFunction( clbk ) ) {
		throw new TypeError( 'invalid input argument. Callback argument must be a function. Value: `' + clbk + '`.' );
	}
	opts.pathname += 'orgs/'+opts.org+'/repos';
	if ( opts.type ) {
		opts.query = 'type='+opts.type;
		delete opts.type;
	}
	return request( opts, done );
	/**
	* FUNCTION: done( error, data, info )
	*	Callback invoked after resolving resources.
	*
	* @private
	* @param {Error|Null} error - error object
	* @param {Object[]} data - query data
	* @param {Object} info - response info
	* @returns {Void}
	*/
	function done( error, data, info ) {
		error = error || null;
		data = data || null;
		info = info || null;
		clbk( error, data, info );
	} // end FUNCTION done()
} // end FUNCTION factory()
/**
* FUNCTION: factory( options, clbk )
*	Returns a function for fetching meta data for all repositories belonging to an organization.
*
* @param {Object} options - function options
* @param {String} options.org - Github organization name
* @param {String} [options.type="all"] - repository type
* @param {String} [options.token] - Github access token
* @param {String} [options.useragent] - user agent string
* @param {Function} clbk - callback to invoke upon query completion
* @returns {Function} function for getting repository meta data
*/
factory( options, clbk )
Returns a function for fetching meta data for all repositories belonging to an organization.
factory ( options clbk ) Returns a function for fetching meta data for all repositories belonging to an organization .
function factory( options, clbk ) {
	var opts;
	var err;
	opts = merge( {}, defaults );
	err = validate( opts, options );
	if ( err ) {
		throw err;
	}
	if ( !isFunction( clbk ) ) {
		throw new TypeError( 'invalid input argument. Callback argument must be a function. Value: `' + clbk + '`.' );
	}
	opts.pathname += 'orgs/'+opts.org+'/repos';
	if ( opts.type ) {
		opts.query = 'type='+opts.type;
		delete opts.type;
	}
	return request( opts, done );
	function done( error, data, info ) {
		error = error || null;
		data = data || null;
		info = info || null;
		clbk( error, data, info );
	} 
} 
function factory ( options , clbk ) { var opts ; var err ; opts = merge ( { } , defaults ) ; err = validate ( opts , options ) ; if ( err ) { throw err ; } if ( ! isFunction ( clbk ) ) { throw new TypeError ( 'invalid input argument. Callback argument must be a function. Value: `' + clbk + '`.' ) ; } opts . pathname += 'orgs/' + opts . org + '/repos' ; if ( opts . type ) { opts . query = 'type=' + opts . type ; delete opts . type ; } return request ( opts , done ) ; function done ( error , data , info ) { error = error || null ; data = data || null ; info = info || null ; clbk ( error , data , info ) ; } }
FUNCTION: factory( options, clbk )
Returns a function for fetching meta data for all repositories belonging to an organization.
FUNCTION : factory ( options clbk ) Returns a function for fetching meta data for all repositories belonging to an organization .
/**
	* FUNCTION: done( error, data, info )
	*	Callback invoked after resolving resources.
	*
	* @private
	* @param {Error|Null} error - error object
	* @param {Object[]} data - query data
	* @param {Object} info - response info
	* @returns {Void}
	*/ // end FUNCTION done() // end FUNCTION factory()