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 🙏

© 2026 – Pkg Stats / Ryan Hefner

textify-cli

v1.0.3

Published

CLI utility to concatenate project source files into a single text file

Readme

Textify-CLI

A command-line utility to concatenate source files from specified project directories into a single text file. Useful for creating a unified view of your codebase, documentation, or analysis.

Features

  • Recursively scans directories for files with specified extensions.
  • Supports inclusion/exclusion of directories and file types.
  • Integrates with .gitignore to skip ignored files.
  • Warns when processing a large number of files, with an option to confirm or abort.
  • Outputs results to a numbered file in the textify directory.

Installation

You can install textify-cli globally to use it across projects or locally within a specific project.

Global Installation

npm install -g textify-cli

Local Installation

npm install textify-cli

Then add a script to your package.json:

{

"scripts": {

"textify": "textify-cli"

}

}

Usage

Run the utility in your project directory:

Global Usage

textify-cli

Local Usage

npm run textify

The utility will:

  1. Scan the directories specified in the config (defaults to the current directory).
  2. Collect files matching the included extensions (e.g., .ts, .js).
  3. Skip excluded directories (e.g., node_modules, .git) and file types (e.g., .log, .md).
  4. Write the contents to a file in the textify directory (e.g., textify/output.txt).

If more than 50 files are found (configurable), it will prompt for confirmation.

Configuration

You can customize the behavior by creating a textify.config.json file in your project root. If no config file is found, defaults are used.

Default Configuration

{
  "includeExtensions": [".ts", ".tsx", ".js", ".jsx", ".json"],
  "excludeExtensions": [".log", ".md"],
  "includeDirs": ["."],
  "excludeDirs": ["textify", "node_modules", ".git", "dist", "build"],
  "maxFilesWarning": 50
}

Custom Configuration Example

To scan only a src directory and increase the warning threshold:

{
  "includeExtensions": [".ts", ".js"],
  "excludeExtensions": [".log"],
  "includeDirs": ["src"],
  "excludeDirs": ["node_modules", "dist"],
  "maxFilesWarning": 100
}
  • includeExtensions: File extensions to process.
  • excludeExtensions: File extensions to skip.
  • includeDirs: Directories to scan (relative to project root).
  • excludeDirs: Directories to exclude.
  • maxFilesWarning: Number of files triggering a confirmation prompt.

The utility also respects your .gitignore file, skipping any ignored paths.

Example Output

For a project structure like this:

my-project/
src/
index.ts
utils/
helper.ts
node_modules/
textify.config.json

Running textify-cli with the custom config above produces:

Collecting files:

src/
index.ts
utils/
helper.ts

Output written to textify/output.txt

The textify/output.txt file will contain:

// src/index.ts
[contents of index.ts]

// src/utils/helper.ts
[contents of helper.ts]

If output.txt already exists, it will create output.001.txt, output.002.txt, etc.

Development

To contribute or modify the utility:

  1. Clone the repository: git clone [https://github.com/timofeypenkov/textify-cli.git](https://github.com/timofeypenkov/textify-cli.git) cd textify-cli
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Test locally: npm link textify-cli
  5. Publish to npm: npm publish --access public

License

MIT License. See LICENSE for details.

Issues

Report bugs or suggest features at https://github.com/timofeypenkov/textify-cli/issues.