strom/samples/split.js

7 lines
147 B
JavaScript
Raw Normal View History

2020-07-04 04:08:31 +00:00
const strom = require("strom");
2020-07-04 04:08:31 +00:00
strom.fromArray(["a,b", "c,d"])
.pipe(strom.split(","))
.pipe(strom.join("|"))
.pipe(process.stdout);