Files: 677dcfe9bf0a2edad81d8553cbbc62da94b75d95 / test / git-remote-test.js
420 bytesRaw
1 | |
2 | |
3 | var toPull = require('stream-to-pull-stream') |
4 | var pull = require('pull-stream') |
5 | |
6 | pull( |
7 | toPull(process.stdin), |
8 | require('../')({ |
9 | prefix: 'foo', |
10 | objectSink: pull.drain(function (obj) { |
11 | console.error('obj', obj) |
12 | }), |
13 | refSink: pull.drain(function (ref) { |
14 | console.error('ref', ref) |
15 | }), |
16 | }), |
17 | toPull(process.stdout, function (err) { |
18 | if (err) |
19 | throw err |
20 | }) |
21 | ) |
22 |
Built with git-ssb-web