project-info-generator
is a Node.js utility for generating information about your project structure, including a directory tree and readable file contents. This script can be used to facilitate project exploration by AI or internal documentation.
- Generates a project directory tree.
- Reads and includes the contents of files with specified extensions.
- Honors
.gitignore
rules or patterns you specify. - Saves output to a
project-info.txt
file.
You can install this package via npm:
npm install -g project-info-generator
After installation, run the following command in your project directory:
project-info
or
project-info /path/to/your/project
Or use it programmatically in your Node.js code:
const generateProjectInfo = require('project-info-generator');
generateProjectInfo('/path/to/your/project');
Project Folder: Run the utility in any project directory.
Configure Readable Files: The file extensions that can be read can be set directly in the script.
The output will be saved in the project-info.txt file in the scanned project directory.