push-local-to-remote.js 267 B

12345678910111213
  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. vfs.src('test/fixtures/**')
  9. .pipe(vhttp.dest('http://localhost:8888/upload'))
  10. .pipe(map(log));