1.0.2 • Published 9 months ago

pattern-matching-replication v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago