CfTurnstile.prototype.validate
Or CfTurnstile.prototype.withFormRequest
new
CfTurnstile(secretKey: string)
req(request: Request): Promise<TunstileAPIResponse>
@result/cf-turnstile is Cloudflare Turnstile API Wrapper
CfTurnstile.prototype.validate
Or CfTurnstile.prototype.withFormRequest
CfTurnstile(secretKey: string)
req(request: Request): Promise<TunstileAPIResponse>
Add Package
deno add jsr:@result/cf-turnstile
Import symbol
import { CfTurnstile } from "@result/cf-turnstile";
---- OR ----
Import directly with a jsr specifier
import { CfTurnstile } from "jsr:@result/cf-turnstile";
Add Package
npx jsr add @result/cf-turnstile
Import symbol
import { CfTurnstile } from "@result/cf-turnstile";
Add Package
yarn dlx jsr add @result/cf-turnstile
Import symbol
import { CfTurnstile } from "@result/cf-turnstile";
Add Package
pnpm dlx jsr add @result/cf-turnstile
Import symbol
import { CfTurnstile } from "@result/cf-turnstile";
Add Package
bunx jsr add @result/cf-turnstile
Import symbol
import { CfTurnstile } from "@result/cf-turnstile";