https://github.com/adityameharia/huffmancompression
Cli for compressing files using huffman algorithm
https://github.com/adityameharia/huffmancompression
cli huffman-compression-algorithm nodejs oclif
Last synced: 9 months ago
JSON representation
Cli for compressing files using huffman algorithm
- Host: GitHub
- URL: https://github.com/adityameharia/huffmancompression
- Owner: adityameharia
- Created: 2021-03-06T04:19:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T06:04:57.000Z (over 4 years ago)
- Last Synced: 2025-02-26T23:16:54.847Z (9 months ago)
- Topics: cli, huffman-compression-algorithm, nodejs, oclif
- Language: C++
- Homepage:
- Size: 11.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
huffman
=======
A cli tool written in nodejs which uses cpp binaries to compress files usig huffman algorithm.
Currently supports Windows,Mac OS and linux.
[](https://oclif.io)
[](https://www.npmjs.com/package/huffman-compressor)
[](https://www.npmjs.com/package/huffman-compressor)
[](https://github.com/adityameharia/huffmanCompression/blob/master/package.json)
* [Usage](#usage)
* [Commands](#commands)
# Usage
```sh-session
$ npm install -g huffman-compressor
$ huffman-compressor COMMAND
running command...
$ huffman-compressor (-v|--version|version)
huffman-compressor/0.1.0 linux-x64 node-v14.15.4
$ huffman-compressor --help [COMMAND]
USAGE
$ huffman-compressor COMMAND
...
```
# Commands
* [`huffman-compressor compress PATH`](#huffman-compressor-compress-path)
* [`huffman-compressor decompress PATH`](#huffman-compressor-decompress-path)
* [`huffman-compressor help [COMMAND]`](#huffman-compressor-help-command)
## `huffman-compressor compress PATH`
Compress compresses the file using huffman algorithm
```
USAGE
$ huffman-compressor compress PATH
ARGUMENTS
PATH path to input file with respect to the current working directory
OPTIONS
-o, --name=name name of output file
```
_See code: [src/commands/compress.js](https://github.com/adityameharia/huffmanCompression/blob/v0.1.0/src/commands/compress.js)_
## `huffman-compressor decompress PATH`
Decompress decompresses the file using huffman algorithm
```
USAGE
$ huffman-compressor decompress PATH
ARGUMENTS
PATH path to input file with respect to the current working directory
OPTIONS
-o, --name=name name of output file
```
_See code: [src/commands/decompress.js](https://github.com/adityameharia/huffmanCompression/blob/v0.1.0/src/commands/decompress.js)_
## `huffman-compressor help [COMMAND]`
display help for huffman-compressor
```
USAGE
$ huffman-compressor help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
```
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.2/src/commands/help.ts)_