Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basemax/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 (*).
https://github.com/basemax/electron-censor-app
electron electron-app electron-ts electron-typescript electronjs electronts javascript js swear-filter swear-words swearing-detector swearwolves swearword ts typescript typescript-electron
Last synced: 6 days ago
JSON representation
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 (*).
- Host: GitHub
- URL: https://github.com/basemax/electron-censor-app
- Owner: BaseMax
- License: mit
- Created: 2024-12-27T18:53:41.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2024-12-27T20:36:40.000Z (7 days ago)
- Last Synced: 2024-12-28T05:08:58.572Z (7 days ago)
- Topics: electron, electron-app, electron-ts, electron-typescript, electronjs, electronts, javascript, js, swear-filter, swear-words, swearing-detector, swearwolves, swearword, ts, typescript, typescript-electron
- Language: TypeScript
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](demo.jpg)
## 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:
```bash
git clone https://github.com/BaseMax/electron-censor-app.git
```2. Navigate into the project directory:
```bash
cd electron-censor-app
```3. Install the dependencies using npm:
```bash
npm install
```4. Build the app:
```bash
npm run build
```5. Run the app:
```bash
npm run start
```This will launch the Electron app and open a window where you can enter text to censor.
6. Release and build `.exe` for Windows OS:
```bash
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:
```bash
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