Skip to content

The Electron Censor App is a simple desktop application built with Electron.js that allows users to censor specific words in a given text. Users can input text, and the app will automatically replace any specified words with asterisks (*).

License

Notifications You must be signed in to change notification settings

BaseMax/electron-censor-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron Censor App

The Electron Censor App is a simple desktop application built with Electron.js that allows users to censor specific words in a given text. Users can input text, and the app will automatically replace any specified words with asterisks (*).

Electron Censor App

Features

  • Load a list of words (from text files) to censor.
  • Replace censored words with asterisks in real-time as the user presses the "Censor" button.
  • Supports both Persian and English words.
  • Built using Electron for cross-platform compatibility.

Installation

To run the Electron Censor App locally, follow the steps below:

  1. Clone this repository to your local machine:

    git clone https://github.com/BaseMax/electron-censor-app.git
  2. Navigate into the project directory:

    cd electron-censor-app
  3. Install the dependencies using npm:

    npm install
  4. Build the app:

    npm run build
  5. Run the app:

    npm run start

This will launch the Electron app and open a window where you can enter text to censor.

  1. Release and build .exe for Windows OS:

    npm run dist
    > [email protected] dist
    > electron-builder
    
    • electron-builder  version=25.1.8 os=10.0.26100
    • loaded configuration  file=package.json ("build" field)
    • writing effective config  file=dist\builder-effective-config.yaml
    • executing @electron/rebuild  electronVersion=33.2.1 arch=x64 buildFromSource=false appDir=./
    • installing native dependencies  arch=x64
    • completed installing native dependencies
    • packaging       platform=win32 arch=x64 electron=33.2.1 appOutDir=dist\win-unpacked
    • downloading     url=https://github.com/electron/electron/releases/download/v33.2.1/electron-v33.2.1-win32-x64.zip
     size=115 MB parts=8

Usage

The app loads words to censor from text files (persian.txt and english.txt).

Once the app is loaded, you can enter text into the provided textarea.

Clicking the "Censor" button will replace any matching words in the input text with asterisks (*), and the censored text will appear in the output textarea.

Development

To contribute or modify the app, you can make changes to the source code located in the src/ directory. After making changes, you can rebuild the app using Electron's build tools.

Start the app in development mode:

npm run dev

This will open the app in a development environment where you can test changes in real-time.

License

This project is licensed under the MIT License.

Copyright (c) 2024, Max Base

About

The Electron Censor App is a simple desktop application built with Electron.js that allows users to censor specific words in a given text. Users can input text, and the app will automatically replace any specified words with asterisks (*).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published