npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

folder2text

v0.0.5

Published

Convert entire project directories to a single text file, perfect for documentation and AI context sharing

Downloads

323

Readme

folder2text

Convert entire project directories into a single, well-organized text file. Perfect for documentation, AI context sharing, and project analysis.

Overview

folder2text is a command-line utility that transforms your project directory into a comprehensive text document. It generates a complete overview including project statistics, file types, detected technologies, and a full directory tree structure, along with the contents of all text-based files.

Features

  • 📊 Project Statistics: Total file count and size analysis
  • 🌳 Directory Tree: Visual representation of your project structure
  • 🔍 Technology Detection: Automatic identification of frameworks and languages
  • 📝 Content Extraction: Intelligent handling of text-based files
  • 🚫 Smart Filtering: Automatic skipping of:
    • Binary files
    • Configuration files (package-lock.json, .env, etc.)
    • Common directories (node_modules, .git, etc.)
    • Media files (images, videos, etc.)

Installation

NPM (Node.js)

npm install -g folder2text

Usage

The output file will contain:

  • Project overview with statistics
  • List of file types and their counts
  • Detected technologies
  • Complete directory tree structure
  • Contents of all text-based files

Example output structure:

folder2text /path/to/folder

The output will look like:

Project Overview
===============

Project Statistics:
Total Files: 42
Total Size: 1.25 MB

File Types:
  .js: 15 files
  .json: 3 files
  .md: 2 files
  ...

Detected Technologies:
  - TypeScript
  - React
  ...

Folder Structure (Tree)
=====================
├── src
│   ├── components
│   └── utils

Use Cases

  • 📚 Creating comprehensive project documentation
  • 🤖 Sharing project context with AI/LLM systems
  • 📊 Project analysis and auditing
  • 👥 Code review and collaboration
  • 📦 Project archival and documentation

License

This project is licensed under MIT with Commons Clause, which means:

  • ✅ Free for personal and open-source use
  • ✅ Can be forked and modified
  • ✅ Can be used as a reference for other open-source projects
  • ❌ Cannot be used for commercial purposes without permission

About the Author

Hi! I'm Nidal Siddique Oritro, a developer passionate about creating tools that make developers' lives easier. I enjoy building utilities that bridge the gap between traditional development workflows and modern AI-powered development.

Learn more about me and my projects at iam.ioritro.com.

Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Support

If you encounter any issues or have questions:

  • Check the Issues page
  • Open a new issue if needed
  • Join the discussion