
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
description
A simple and fast directory tree generator with clipboard support and automatic .gitignore integration.
# Install globally
npm install -g tree-copy
# Or use with npx
npx tree-copy
# Generate and copy current directory tree (default behavior)
tc
# Generate tree for specific directory
tc /path/to/directory
# Just display without copying
tc --no-copy
# Set maximum depth
tc --depth 3
tc -d 5
# Show hidden files
tc --hidden
# Additional ignore patterns (beyond .gitignore)
tc --ignore "*.log,temp,cache"
# Combine multiple options
tc --depth 3 --hidden --ignore "*.tmp"
| Command | Description |
|---|---|
tree-copy | Full command name |
tc | Short alias (recommended) |
# Quick copy current directory structure (most common usage)
tc
# Analyze specific project with custom depth
tc ~/my-project --depth 4
# Show all files including hidden ones
tc --hidden
# Display only without copying to clipboard
tc --no-copy
# Custom ignore patterns in addition to .gitignore
tc --ignore "*.tmp,cache,logs"
Usage: tc [path] [options]
| Argument | Description |
|---|---|
path | Directory path to analyze (default: current directory) |
| Option | Description |
|---|---|
-c, --copy | Copy output to clipboard (default: enabled) |
--no-copy | Disable clipboard copy |
-d, --depth <number> | Maximum depth to traverse (default: 5) |
--hidden | Show hidden files and directories |
--ignore <patterns> | Additional ignore patterns (comma-separated) |
-h, --help | Display help information |
-v, --version | Display version number |
Note: Automatically reads .gitignore file if present
my-project/
├── package.json
├── README.md
├── src/
│ ├── index.ts
│ ├── components/
│ │ ├── App.tsx
│ │ └── Header.tsx
│ └── utils/
│ └── helpers.ts
├── tests/
│ └── app.test.ts
└── dist/
└── index.js
📋 Copied to clipboard!
The tool automatically reads and respects your project's .gitignore file:
.gitignore in the target directory*.log), directories (dist/), etc.--ignore patternsClipboard Requirements
pbcopy (built-in)clip (built-in)xclip or xsel# Ubuntu/Debian
sudo apt-get install xclip
# Fedora/RHEL
sudo dnf install xclip
# Arch Linux
sudo pacman -S xclip
Tips
tc for the quickest way to copy directory structure--no-copy if you only want to display the tree--depth to limit output for large projectstc && echo "Tree copied!"FAQs
_description_
We found that tree-copy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.