all repos — archive/homestead @ 6f9b41464f25d12a24b2672dbf12b43c7df81dd2

My future indieweb platform

refactor: Replace stream-array with highland Works with more than just arrays. Iterators in particular are useful

Alan Pearce
commit

6f9b41464f25d12a24b2672dbf12b43c7df81dd2

parent

b959fe891cc975038a1d34b51192365b55cb7e7e

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M src/actions.jssrc/actions.js
@@ -1,11 +1,11 @@
'use strict' const send = require('koa-send') -const streamify = require('stream-array') +const h = require('highland') const responders = require('./responders') function toArrayStream (iterator) { - return streamify(Array.from(iterator.entries())) + return h(iterator.entries()) } function home (config, posts) {