Skip to content

kietdev123/source_code_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Source Code Exporter

Source Code Exporter is a Node.js tool designed to compile and aggregate the contents of various files within a specified folder into a single text file. The resulting text file contains the path and content of each file, making it easier to review or analyze source code across multiple files in a project.

Features

  • Export content from all files in a given folder (and its subfolders).
  • Support for various file types and formats (e.g., .js, .html, .txt, etc.).
  • Output a single text file containing:
    • The file path of each file.
    • The content of each file, with indentation (optional) for readability.

How It Works

  • The tool scans the specified folder for all files.
  • For each file found, it adds the file path and the content of the file to the output text file.
  • The content of each file is indented to improve readability.

Example of the Output File

***core/all.dart

	export 'configs/all.dart';
	export 'constants/all.dart';
	export 'exceptions/all.dart';
	export 'extensions/all.dart';
	export 'helpers/all.dart';
	export 'mixins/all.dart';
	export 'utils/all.dart';
	

***core/utils/agora_voice_client.dart

	import 'dart:async';
	import 'dart:developer';

Prerequisites

Before running the tool, ensure you have the following installed:

  • Node.js (v12 or higher)
  • npm (Node.js package manager)

Installation

  1. Clone this repository:
git clone https://github.com/your-username/source-code-exporter.git
cd source-code-exporter
  1. Install package
npm install

Usage

  1. Place the source code files you want to export into a folder.

  2. Start the server:

node server.js
  1. Open your web browser and navigate to
http://localhost:3000
  1. Select the folder containing the source code files.

  2. Click the "Export" button, and the tool will generate a single text file (output.txt) with the paths and content of each file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published