Turn your site gray and automatically cancel it at a certain time
pnpm i grays
#or
npm i grays
#or
yarn add graysimport { grays } from "grays";
grays();import { grays } from "grays";
grays("html", 60);import { grays } from "grays";
grays("html", 99, {
immediate: true,
});import { grays } from "grays";
grays("html", 99, {
expire: new Date(2022, 11, 1).getTime() // Expires automatically after "2022-12-1
immediate: true,
});import { grays } from "grays";
grays("html", 99, {
className: "grays-for",
});import { grays } from "grays";
const { cancel, apply } = grays();