strom/samples/replace.js

6 lines
137 B
JavaScript
Raw Normal View History

2018-12-04 06:30:38 +00:00
const Mhysa = require("mhysa");
Mhysa.fromArray(["a1", "b22", "c333"])
.pipe(Mhysa.replace(/b\d+/, "B"))
.pipe(process.stdout);