strom/samples/replace.js
2018-12-04 01:30:38 -05:00

6 lines
137 B
JavaScript

const Mhysa = require("mhysa");
Mhysa.fromArray(["a1", "b22", "c333"])
.pipe(Mhysa.replace(/b\d+/, "B"))
.pipe(process.stdout);