0.0.5 • Published 2 months ago

grays v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

grays

Turn your site gray and automatically cancel it at a certain time

Instal

pnpm i grays

#or

npm i grays

#or

yarn add grays

Basic Used

import { grays } from "grays";

grays();

Custom Graysale

import { grays } from "grays";

grays("html", 60);

Immediate (Default behavior)

import { grays } from "grays";

grays("html", 99, {
  immediate: true,
});

Automatic expiration on Immediate

import { grays } from "grays";

grays("html", 99, {
  expire: new Date(2022, 11, 1).getTime() // Expires automatically after "2022-12-1
  immediate: true,
});

Custom ClassName

import { grays } from "grays";

grays("html", 99, {
  className: "grays-for",
});

API

import { grays } from "grays";

const { cancel, apply } = grays();
0.0.3

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.2

1 year ago

0.0.1

1 year ago