1.0.2 • Published 9 months ago
pattern-matching-replication v1.0.2
sexy ass example
const match = require("pattern-matching-replication");
const wtf = match("femboy discord sex")
.expr(/femboy/, "ew fucking gay")
.expr("uwu", "nya~")
.default("rawr")
.exec();
console.log(wtf) // "ew fucking gay"
functions
match(value) -> create a match
.expr(expression, ifmatch) -> yes
.fall() -> no
.default(ifnomatch) -> default expression
.exec() -> run it