Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

keywordPolicy

import { keywordPolicy } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

Reject events containing any of the strings in its content.

@example
// Reject events with bad words.
keywordPolicy(msg, ['moo', 'oink', 'honk']);
const keywordPolicy: Policy<Iterable<string>>;