UNPKG

meshblu-google-vision

Version:

[![Build Status](https://travis-ci.org/octoblu/meshblu-google-vision.svg?branch=master)](https://travis-ci.org/octoblu/meshblu-google-vision) [![Code Climate](https://codeclimate.com/github/octoblu/meshblu-google-vision/badges/gpa.svg)](https://codeclimat

20 lines (14 loc) 385 B
var tar = require("../tar.js") , fs = require("fs") function onError(err) { console.error('An error occurred:', err) } function onEnd() { console.log('Extracted!') } var extractor = tar.Extract({path: __dirname + "/extract"}) .on('error', onError) .on('end', onEnd); fs.createReadStream(__dirname + "/../test/fixtures/c.tar") .on('error', onError) .pipe(extractor);