Skip to main content
Module

x/useragents/mod.ts

User agent utils for Deno.
Go to Latest
File

import fetchCommon from './Common.js'

interface CommonOptions { raw ?: boolean}

/** * @brief Fetch the list of common UserAgents * * ## Example * * ```js * import { common } from 'https://deno.land/x/useragents/mod.ts' * * const agents = await common(); * * console.log('Common UserAgents:',agents); * ``` */
export async function common ( options : CommonOptions ){ return await fetchCommon(options ?? {});}