Socket
Socket
Sign inDemoInstall

gitpacker

Package Overview
Dependencies
25
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gitpacker

A tool to quickly pack and compress git repository.


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Install size
797 kB
Created
Weekly downloads
 

Readme

Source

gitpacker.js

Greenkeeper badge Build Status License Dependency Coverage Status Standard - JavaScript Style Guide

A tool to quickly pack and compress the pure git repository.

NPM

gitpacker status

Installation

CLI executable

npm install -g gitpacker

API install

npm install --save gitpacker

Usage

CLI Usage

$ gitpacker -h

  Usage: gitpacker [options] [command]


  Commands:

    zip <file> [dir]
    tar <file> [dir]

  Compress files based on git ignore.

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -i, --include <files ...>  include files
    -e, --exclude <files ...>  exclude files
    --debug                    debug mode, such as print error tracks

API Usage

const compress = require('gitpacker')
compress (string, string, string, Array, Array)

Compress files to zip or tar.

  • The first string sets method, e.g. 'zip' or 'tar',
  • The second string sets working directory,
  • The third string sets compress file name,
  • The first Array sets include files,
  • The second Array sets exclude files.

Example

CLI Example

For example, in the current project directory, want to gitpacker and exclude all .sh files:

$ gitpacker zip xxx.zip . -e '*.sh'

or want to gitpacker the ./lib directory:

$ gitpacker zip xxx.zip lib

License

The Apache License 2.0

Keywords

FAQs

Last updated on 02 May 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc