UNPKG

liquidless-naughtystrings

Version:

Big List of Naughty Strings filter for liquidless templates

12 lines (11 loc) 530 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.naughtystring = void 0; const naughtystrings_json_1 = __importDefault(require("./naughtystrings.json")); const naughtystring = (value, args, variable) => { return naughtystrings_json_1.default[Math.floor(Math.random() * naughtystrings_json_1.default.length)]; }; exports.naughtystring = naughtystring;