A safe and modern CLI tool that scans your source code, previews comments, and cleans them with confirmation.
noLine scans the selected directory, analyzes comments in supported files, and provides a safe preview before cleaning.
Run it immediately without installation:
npx @ihsnishnogl/noline scan .| Feature | Description |
|---|---|
| Safe Preview | Provides a detailed analysis report before removing any comments. |
| Auto Backup | Protects your data by creating a project backup before cleaning. |
| Risk Protection | Detects unterminated strings or broken code structures and skips them for safety. |
| Flexible Filtering | Processes only the files or folders you want based on your criteria. |
| Multi-Language Support | Switch between Turkish and English with a single command. |
| JSON Support | Outputs results in a machine-readable format for automation. |
Install globally via npm:
npm install -g @ihsnishnogl/nolineOr for local development:
# 1. Clone the repo
git clone https://github.com/ihsnishnogl/noLine.git
# 2. Enter the directory
cd noLine
# 3. Install dependencies
npm install
# 4. Build the project
npm run build
# 5. Link globally (Optional)
npm link# Scan files and show a summary
noline scan .
# Safely clean comments (asks for backup and confirmation)
noline clean .
# Change language (tr | en)
noline lang en# Only process TypeScript files under src
noline scan ./src --include "**/*.ts"
# Exclude node_modules and dist folders
noline clean . --exclude "node_modules/**,dist/**"
# Clean quickly by skipping confirmation steps
noline clean . --yes
# See all files in the preview list
noline scan . --all- Analysis: Files are scanned and comment lines are identified.
- Risk Check: If a quote or block comment is left open, the file is marked as "RISKY" and not modified.
- Backup: During the
cleanprocess, you are asked if a backup should be created. If confirmed, a copy of the project is created with the-backupsuffix. - Confirmation: After a final confirmation, comments are safely removed.


