2018-12-03 05:38:17 +00:00
|
|
|
const Mhysa = require("mhysa");
|
|
|
|
|
|
|
|
Mhysa.fromArray(["a", "b", "cc"])
|
|
|
|
.pipe(Mhysa.reduce((acc, s) => ({ ...acc, [s]: s.length }), {}))
|
2018-12-03 05:59:31 +00:00
|
|
|
.pipe(Mhysa.stringify())
|
2018-12-03 05:38:17 +00:00
|
|
|
.pipe(process.stdout);
|