Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_nest/modules/uinv/src/tools/mod.ts>getFirstOriginByHost

Refer to nestjs to realize some common functions for Deno
Go to Latest
function getFirstOriginByHost
import { getFirstOriginByHost } from "https://deno.land/x/oak_nest@v2.0.0/modules/uinv/src/tools/mod.ts";

根据host获取一级域名

Parameters

host: string

正常应该是www.baidu.com,或者localhost

Returns

string