git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6e9c872
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
lib
node_modules
tar
examples
extracter.js
[add] server:lib:node_modules
Christian Fraß
commited
6e9c872
at 2021-03-08 23:52:07
extracter.js
Blame
History
Raw
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);