git ssb

1+

Dominic / pull-stream-workshop



Tree: 079013977dd1a81caf9ed4717492ef3b9f722db0

Files: 079013977dd1a81caf9ed4717492ef3b9f722db0 / solutions / 03.js

286 bytesRaw
1
2module.exports = function (map) {
3 return function (read) {
4 return function (abort, cb) {
5 read(abort, function (end, data) {
6 if(end) return cb(end)
7 else cb(null, map(data))
8 })
9 }
10 }
11}
12
13if(!module.parent)
14 require('../helpers/map')(module.exports)
15

Built with git-ssb-web