Sha256: fb594bc4b6f157585a7bce59db27396aa4f29926be3cc7537443b2d6c0d4c420

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

var outpipe = require('../');
var gaze = require('gaze');
var fs = require('fs');

var minimist = require('minimist');
var argv = minimist(process.argv.slice(2), {
    alias: { o: 'output' }
});

var file = argv._[0];
gaze(file, function (err, w) {
    w.on('changed', read);
});
read();

function read () {
    var r = fs.createReadStream(file);
    r.pipe(outpipe(argv.output));
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
brwy_rails-0.0.6 test/dummy/node_modules/outpipe/example/watch.js
brwy_rails-0.0.5 test/dummy/node_modules/outpipe/example/watch.js
brwy_rails-0.0.4 test/dummy/node_modules/outpipe/example/watch.js
brwy_rails-0.0.3 test/dummy/node_modules/outpipe/example/watch.js
brwy_rails-0.0.2 test/dummy/node_modules/outpipe/example/watch.js
brwy_rails-0.0.1 test/dummy/node_modules/outpipe/example/watch.js