Skip to content

A Java implementation of GNU's command line utility base64 and an example of using ArgMatey

License

Notifications You must be signed in to change notification settings

jh3nd3rs0n/cafebase64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CafeBase64

CodeQL Codacy Badge

Contents

Introduction

CafeBase64 is a Java implementation of GNU's command line utility base64 and an example of using ArgMatey.

License

CafeBase64 is licensed under the MIT license

Requirements

For automated testing and building:

  • Apache Maven 3.3.9 or higher
  • Java 8 or higher

For running CafeBase64

  • Java 8 or higher

Automated Testing

To run automated testing, run the following commands:

cd cafebase64
mvn clean test

Building

To build and package CafeBase64 as an executable JAR file, run the following command:

mvn clean package

After running the aforementioned command, the executable JAR file can be found in the following path:

target/cafebase64-VERSION.jar

VERSION is further specified by the name of the actual executable JAR file.

Running CafeBase64

To run CafeBase64, you can run the following command:

java -jar cafebase64-VERSION.jar [OPTION]... [FILE]

Be sure to remove or replace the following:

  • Replace VERSION with the actual version shown within the name of the executable JAR file.
  • Remove [OPTION]... or replace [OPTION]... with one or more of the command line options described in the usage below.
  • Remove [FILE] or replace [FILE] with the file you would like to be transformed to standard output. (Removing [FILE] will cause CafeBase64 to use standard input as input instead of a file.)

Usage

Usage: cafebase64 [OPTION]... [FILE]
Base64 encode or decode FILE, or standard input, to standard output.

With no FILE, or when FILE is -, read standard input.
	
OPTIONS:
  -d, --decode
	  decode data
  -i, --ignore-garbage
	  when decoding, ignore non-alphabet characters
  -w COLS, --wrap=COLS
	  wrap encoded lines after COLS character (default 76).
	  Use 0 to disable line wrapping
  --help
	  display this help and exit
  --version
	  display version information and exit

About

A Java implementation of GNU's command line utility base64 and an example of using ArgMatey

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages