a simple tar file unpacker
Want to see pretty graphs? Log in now!
npm install untar
|31||downloads in the last week|
|41||downloads in the last month|
|Last Published By|
|Version||0.2.8 last updated 2 months ago|
|Keywords||tar, unpack, tarball, untar|
|Dependencies (8)||foreach, path, lift-result, result-type, tar-stream, writefile, result, mkdirp|
A simple tar file unpacker. tar files are a bit of a box of chocolates in that you never know what the top level directory within them is going to be called or how many excess directories there might be. This module takes care of that problem by chopping off all unnecessary path segments as it writes files to your destination directory.
$ npm install untar --save
then in your app:
var untar = require('untar')
The untar function takes a path to a target directory and a stream for a tar file. It returns a Result.
Running the tests
$ npm install $ node test/server & make test
add a separate function for handling buffered tars