stream-remote-to-remote.js 292 B

123456789101112
  1. var vhttp = require('../index');
  2. var vfs = require('vinyl-fs');
  3. var map = require("map-stream");
  4. var log = function(file, cb) {
  5. console.log(file)
  6. cb(null, file);
  7. };
  8. vhttp.src('http://localhost:8888/test/fixtures/**')
  9. .pipe(map(log))
  10. .pipe(vhttp.dest('http://localhost:8888/upload2'));