mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-27 06:47:18 -05:00
Add node_modules until bundler is added
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
var FetchStream = require('../lib/fetch').FetchStream;
|
||||
|
||||
var fetch = new FetchStream('http://google.com', {
|
||||
headers: {}
|
||||
});
|
||||
|
||||
fetch.on('data', function (chunk) {
|
||||
console.log(chunk);
|
||||
});
|
||||
|
||||
fetch.on('meta', function (meta) {
|
||||
console.log(meta);
|
||||
});
|
||||
|
||||
fetch.on('end', function () {
|
||||
console.log('END');
|
||||
});
|
||||
|
||||
fetch.on('error', function (e) {
|
||||
console.log('ERROR: ' + (e && e.message || e));
|
||||
});
|
||||
Reference in New Issue
Block a user