Socket
Book a DemoInstallSign in
Socket

tfhelps

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tfhelps

0.1.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

TFHelps

Gem Version

TFHelps is a command-line tool designed to format text files professionally and efficiently. Built primarily for Helps Ministries, it uses the Gemini API to clean up and structure text based on predefined formatting guidelines. This tool is ideal for anyone looking to automate the process of making text more readable and polished.

Installation

Run this command to install the gem:

gem install tfhelps

Usage

Prerequisites

Before using TFHelps, you need to obtain an API key from Google's AI Studio. Follow these steps:

  • Visit Google AI Studio and sign in with your Google account.
  • Generate an API key (free or paid, depending on your usage needs).
  • Store the API key in your environment variables with the key GEMINI_API_KEY. To achieve that, add the following line to your .bashrc, .zshrc, or equivalent shell configuration file:
export GEMINI_API_KEY="your_api_key_here"
  • Restart your terminal or run source ~/.bashrc (or equivalent) to apply the changes.

Running the Tool

To format a text file, use the following command:

tfhelps path/to/your/textfile.txt

The tool will process the file and output the formatted text to a new text file in the current directory.

Formatting Guidelines

TFHelps follows these rules to format your text:

  • Combine sentences into a single paragraph if they are separated by a single empty line.
  • Create a new paragraph whenever there are two or more empty lines separating the text.
  • Ensure proper spacing, punctuation, and capitalization throughout the text.
  • Maintain a clean and polished format suitable for professional use.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wuletawwonte/tfhelps. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Tfhelps project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 21 Apr 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.