Scan URLs for adult content.
Install the package:
npm install kayle-scannerImport the package:
import { scan } from "kayle-scanner";Use the scan function:
const thisIsntAdultContent = scan("https://www.google.com");
console.log(thisIsntAdultContent); // false
const thisIsAdultContent = scan("https://onlyfans.com");
console.log(thisIsAdultContent); // trueconst options: ScanOptions = {
followRedirects: true,
botDetection: "links", // ignore, links, always
customDomains: [],
errors: "ignore", // ignore, log, throw
};bun test