Skip to main content
Module

x/packup/install_util.ts

📦 Zero-config web application packager in Deno
Go to Latest
File
import { join, NAME } from "./deps.ts";
function homedir(os: typeof Deno.build.os): string { if (os === "windows") { return Deno.env.get("USERPROFILE")!; } return Deno.env.get("HOME")!;}
export function wasmCacheDir(os = Deno.build.os, getHomeDir = homedir): string { return join(getHomeDir(os), ".deno", NAME);}
export function wasmPath(): string { return join(wasmCacheDir(), "esbuild.wasm");}