Socket
Socket
Sign inDemoInstall

node-archiver

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-archiver

Create a gzipped tar archive of a given path.


Version published
Maintainers
1
Created
Source

Node Archiver

Super simple Node utility to create a gzipped tar archive.

Install

npm install --save node-archiver

Usage

  var archiver = require('node-archiver');
  archiver(__dirname, './dist/my-archive.tar.gz');

You can pass an optional callback to archiver:

archiver(__dirname, './dist/my-archive.tar.gz', function(err) {
  if (err) { throw err; }
  // Done!
});

Create an archive in the dist/ directory of your project:

./node_modules/node-archiver/bin/create_dist

Adding the above line to your build process will create a distributable .tar.gz archive in the dist/ directory of your project. The name of the file will match the name attribute in your package.json.

Release Notes

0.1.0 Initial Release
0.1.1 Bug Fix
0.2.0 Added bin/create_dist for easier integration into a build process.
0.3.0 Dependency updates to latest fstream and tar.

FAQs

Package last updated on 18 Jun 2016

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