src/index.js
function profile(username = _noUsernameError()) {
	return co(function *resolveUsername() {
		const userId = yield _getIdByUsername(username);
		const url = `${API}/users/${userId}`;
		const params = { app: 3	};

		return http
			.GET(url, params)
			.then(data => data.profile);
	});
}
function profile(username = _noUsernameError()) {
	return co(function *resolveUsername() {
		const userId = yield _getIdByUsername(username);
		const url = `${API}/users/${userId}`;
		const params = { app: 3	};

		return http
			.GET(url, params)
			.then(data => data.profile);
	});
}
function profile ( username = _noUsernameError ( ) ) { return co ( function * resolveUsername ( ) { const userId = yield _getIdByUsername ( username ) ; const url = ` ${ API } ${ userId } ` ; const params = { app : 3 } ; return http . GET ( url , params ) . then ( data => data . profile ) ; } ) ; }
Retrieve the profile of a devRant user by username.

@param  {String} username - the devRant username

@return {Promise} Resolves with the fetched user profile
Retrieve the profile of a devRant user by username .