Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

untar

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

untar

a simple tar file unpacker

  • 0.2.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
increased by272.73%
Maintainers
1
Weekly downloads
 
Created
Source

untar

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.

Getting Started

With npm

$ npm install untar --save

then in your app:

var untar = require('untar')

API

  • untar()

untar(path:String, tarfile:Stream)

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

todo

add a separate function for handling buffered tars

Keywords

FAQs

Package last updated on 18 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc