1.0.2 • Published 2 years ago

pattern-matching-replication v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago