A web-based Text Truncator and Cleaner that allows users to upload text files, set token limits, and apply various cleaning options like removing special characters, numbers, punctuation, emojis, and converting text to lowercase. Ideal for quick text processing and cleanup tasks.
MIT License
This application provides a user-friendly interface for text manipulation, focusing on truncating text and removing unnecessary elements like special characters, numbers, punctuation, and emojis. Users can input text directly, paste large text blocks, or upload text files for processing.
Select the cleaning options you wish to apply:
The text exceeding the set token limit will be displayed in the "Text Cut Off" section.
The CSS file styles.css
defines the visual aspects of the application, including layout, colors, and typography, ensuring a clear and accessible user interface.
The application's functionality is divided among several JavaScript modules:
textUtils.js
: Contains logic for cleaning and truncating text.handlers.js
: Provides functions that interact with the DOM to handle user input and apply text processing.eventBinders.js
: Binds DOM events to handler functions.main.js
: Initializes the application by binding the necessary DOM elements to their respective event handlers on document load.The application is structured modularly, allowing for easy extension and maintenance. Developers can add new text processing features or modify existing ones by updating textUtils.js
and handlers.js
accordingly.
Load the index.html
file in a web browser to start using the application. Make sure all JavaScript files are correctly linked and accessible in the js/
directory.