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

github.com/dawkrish/compression-tool

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dawkrish/compression-tool

  • v0.0.0-20240905044059-34fea799afc1
  • Source
  • Go
  • Socket score

Version published
Created
Source

Compression Tool

Inspired by this coding challenge

Installation

All the code blocks are meant to be run in a terminal

  • Install Go You can download Go from [here]

  • Install the binary

    go install github.com/dawkrish/compression-tool@latest
    

This will place the binary in GOPATH. You can check your GOPATH by typing the command go env

  • Confirm

    which compression-tool
    

    should output something like

      /Users/<username>/go/bin/compression-tool
    

Usage

  • There are only 2 flags

    • -h for help
    • -d for decompressing
  • Example

    • ./compression-tool <file-name> : will compress the content of the file into a new file <file-name_compressed.txt>
    • ./compression-tool -d <file-name> : will decompress the content of the file into a new file <file-name_decompressed.txt>

Note : the -d flag must come before the <file-name>. You can look the reason for it [here]

Note that the flag package requires all flags to appear before positional arguments (otherwise the flags will be interpreted as positional arguments)

Contribution

The project was simple and small, but effective, if you face any issue, please raise an issue

FAQs

Package last updated on 05 Sep 2024

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