Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

print-project

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

print-project - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

5

package.json
{
"name": "print-project",
"version": "1.0.5",
"version": "1.0.6",
"description": "A simple CLI tool to print the project tree structure and file contents",
"main": "dist/index.js",
"bin": {
"print-project": "./dist/index.js"
"print-project": "./dist/index.js",
"pp": "./dist/index.js"
},

@@ -9,0 +10,0 @@ "types": "dist/index.d.ts",

42

README.md
# Print-Project
The `print-project` command-line tool scans a specified directory and generates a report including the tree structure and content of files that do not match given ignore patterns. It is useful for documenting or analyzing the file layout of projects, especially in development environments.
The `print-project` command-line tool scans a specified directory and generates a report including the tree structure
and content of files that do not match given ignore patterns. It is useful for documenting or analyzing the file layout
of projects, especially in development environments.

@@ -30,2 +32,16 @@ ## Installation

### Command Aliases
You can use either `print-project` or `pp` to run the tool:
```bash
print-project <startPath> [ignorePatterns]
```
or
```bash
pp <startPath> [ignorePatterns]
```
### Using Default Ignore Patterns

@@ -60,2 +76,6 @@

```
or
```bash
pp ./src
```

@@ -67,2 +87,6 @@ - **Ignore specific patterns**:

```
or
```bash
pp ./src "node_modules,*.log,dist,coverage"
```

@@ -74,2 +98,6 @@ - **Use default ignore patterns**:

```
or
```bash
pp ./src --ignore-default
```

@@ -81,2 +109,6 @@ - **Use default ignore patterns and add custom ones**:

```
or
```bash
pp ./src "*.tmp,*.bak" --ignore-default
```

@@ -89,4 +121,5 @@ ## Features

- **Output Generation**: Creates a text file `project-print.txt` in the current working directory containing:
- The structured list of non-ignored files and directories.
- The content of non-empty files.
- The structured list of non-ignored files and directories.
- The content of non-empty files.
- **Command Alias**: Can be run using either `print-project` or `pp` for convenience.

@@ -113,2 +146,3 @@ ## How It Works

Contributions are welcome. Please open an issue first to discuss what you would like to change, or directly submit a pull request.
Contributions are welcome. Please open an issue first to discuss what you would like to change, or directly submit a
pull request.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc