npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ziplocalgit

v1.0.10

Published

Command line tool to zip the local git repository

Downloads

1,277

Readme

npm pipeline status coverage

logo ziplocalgit

Zip local git repository, used for student submissions

This small library provides a command line tool in order to zip the local git repository. It is used in the context of a university class in which students have to submit their solutions by means of a zip file containing the local git repository. The idea behind that is, that instead of simply creating a zip of the solution, git is to be used and, more importantly, the lecturer gets all the git logs in order to improve check of copies. Error messages are emitted in German language at the moment.

Install

Install with npm:

npm install --save-dev ziplocalgit

Usage

Usage: ziplocalgit zip [options]

Create a zip file with local git (.git)

Options:

  • --noCommitCheck Do not check that - all files are committed (default: false)
  • --noOverwrite Do not overwrite - existing submission zip (default: false)
  • -f --filename <filename> Name of zip file, - use ${CWD} for (simple) name of current - folder. (default: "abgabe_${CWD}.zip")
  • --minsize <minsize> Emit warning if - zip file size is less than min size (in - kByte). (default: "20")
  • --maxsize <maxsize> Emit warning if - zip file size is greater than min size (in - kByte). (default: "2000")
  • -h, --help display help for command

Usually you want to create a script in package.json, e.g.

"scripts": {
    "abgabe": "npx ziplocalgit -f abgabe_Blatt_0"
}

Dependencies

  • adm-zip
    • Until version 1.0.3, bestzip has been used. Alas that package has some dependencies which caused security warnings.
  • commander.js

Status

This library is developed on demand. It only contains features as far as needed by the author. It is basically made public in order to simplify the author's scripts.

License

This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at https://www.eclipse.org/legal/epl-2.0.