Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghaschel/node-uharc
Node.js uharc wrapper
https://github.com/ghaschel/node-uharc
compression file-compression homebrew node-uharc node-wrapper uharc wine
Last synced: about 2 months ago
JSON representation
Node.js uharc wrapper
- Host: GitHub
- URL: https://github.com/ghaschel/node-uharc
- Owner: ghaschel
- License: other
- Created: 2018-03-05T12:51:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-26T11:14:21.000Z (7 months ago)
- Last Synced: 2024-10-25T04:22:18.327Z (about 2 months ago)
- Topics: compression, file-compression, homebrew, node-uharc, node-wrapper, uharc, wine
- Language: JavaScript
- Size: 896 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# node-uharc
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/node-uharc.svg)](https://badge.fury.io/js/node-uharc)
Node-uharc is a Node.JS wrapper for Uharc. It uses wine for Unix-based system compatibility.
# Installation
```sh
$ npm install node-uharc --save-dev
```
##### Linux
It will ask for sudo to install wine if it's not already installed.##### OSX
It will ask for sudo to install HomeBrew.
- As default HomeBrew packages will never ask for sudo, but it will ask for Brew itself and to create a default wine folder that will break the installation if not existent (apparently High Sierra related)# How to use
#### Compress
```
const nodeUharc = require('node-uharc');nodeUharc({
action: 'compress',
files: './*', // files or folder to compress (wildcards are supported)
output: './bin/opt.uha', // output file
compressionMode: 'LZP', // LZP or ALZ or PPM
headerEncryption: true, // archive header encryption
recursive: true, //should include subfolders
clearFileArchiceAttr: true, // clear file archive attr
multimediaCompression: true // enable multimedia detection and compression
})
```#### Extract
```
nodeUharc({
action: 'extract',
files: './bin/opt.uha', // files or folder to extract (wildcards are supported)
output: '../tst', // output folder
})
```## [Changelog](CHANGELOG.md)
License
----Node-uhac - MIT
Uharc (Copyright (c) 1997-2005 by Uwe Herklotz) - Free for non-commercial use### Notice
The only information I could find about Uharc license is that it's Free for non-commercial use.