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

x/fresh/plugins/twindv1_deps.ts>getSheet

The next-gen web framework.
Extremely Popular
Go to Latest
function getSheet
import { getSheet } from "https://deno.land/x/fresh@1.6.1/plugins/twindv1_deps.ts";

Returns a sheet useable in the current environment.

Parameters

optional
useDOMSheet: boolean

usually something like process.env.NODE_ENV != 'production' or import.meta.env.DEV (default: browser=cssom, server=virtual)

optional
disableResume: boolean

to not include or use resume data

Returns

Sheet<string[] | HTMLStyleElement | CSSStyleSheet>

a sheet to use