Skip to main content

A very bad formatter for any programming language with braces and semicolons (eg. c/c++/java/javascript/rust)

Project description

badfmt

A very bad formatter for any programming language with braces and semicolons (e.g., c/c++/java/javascript/rust)

Description

badfmt is a command-line tool that attempts to format code files written in programming languages with braces and semicolons. It makes the code seem like it doesn't have any semicolons or braces but puts them at the very end of the line away from sight. It is designed to be a joke formatter and should not be used in production codebases.

Installation

To install badfmt, you need to have Python 3.8 or higher installed. You can then use pip to install the package:

pip install badfmt

Usage

To use badfmt, simply run the following command:

python -m badfmt [filepath]

Replace [filepath] with the path to the file you want to format. The tool will attempt to format the file in place.

You can also specify the maximum line length using the -l or --line-len option. For example:

badfmt -l 80 [filepath]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

badfmt-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

badfmt-1.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page