import { getUser } from './domain.ts' import type { ProductHuntGetUserOptions } from './types.ts' /** * Look up a Product Hunt hunter by id or username. * @param params.id - Hunter id. * @param params.username - Hunter username such as `kentcdodds`. * @example * import getUser from 'kody:@kentcdodds/producthunt/get-user' * const hunter = await getUser({ username: 'kentcdodds' }) * // => { id: '...', username: 'kentcdodds', name: 'Kent C. Dodds' } */ export default async function getUserEntrypoint(params: ProductHuntGetUserOptions) { return await getUser(params) }