flat-project

0.0.2 • Public • Published

flat-project

npm version npm downloads GitHub license

flat-project is a command-line tool that generates a flat structure of your project and creates a tree view to easily visualize it. It's useful for getting a quick overview of your project structure or for creating a simplified version of your project directory. I've personally been using it to quickly upload files for a project on claude.ai.

Installation

You can install flat-project globally using npm:

npm install -g flat-project

or alternatively, you can install it locally using npm:

npm install --save-dev flat-project

Usage

After installation, you can use flat-project by running:

flat-project

This will:

  1. Create a .flat directory in your current project
  2. Generate a flat.txt file inside .flat with a tree view of your project structure
  3. Copy all non-ignored files into the .flat directory
  4. Update your .gitignore to include the .flat directory (if a .gitignore file exists)

Configuration

flat-project uses a .flatignore file to determine which files and directories to ignore. If this file doesn't exist, it will be created with default ignore patterns. You can modify this file to customize which files and directories are ignored.

Default ignore patterns include:

  • flat-project.js
  • .git
  • .flatignore
  • node_modules
  • *.log
  • .vscode
  • .gitignore
  • .firebase
  • .flat

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Issues

If you find a bug or have a suggestion for improvement, please open an issue on the GitHub repository.

Package Sidebar

Install

npm i flat-project

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

8.29 kB

Total Files

5

Last publish

Collaborators

  • wbjacobs