import { getCollection } from './domain.ts'
import type { ProductHuntGetCollectionOptions } from './types.ts'
/**
* Look up a published Product Hunt collection by id or slug.
* @example
* import getCollection from 'kody:@kentcdodds/producthunt/get-collection'
* const collection = await getCollection({ slug: 'ai-tools' })
* // => { id: '...', name: '...', followersCount: 1200 }
*/
export default async function getCollectionEntrypoint(params: ProductHuntGetCollectionOptions) {
return await getCollection(params)
}