
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
FTY Utilities is a set of TypeScript tools designed to pack and unpack directory structures into a custom, human-readable YAML-based format called FileTree YAML (FTY). This format makes it easy to serialize and deserialize entire project structures or individual folders, offering a clear, hierarchical representation of your file system.
In the evolving landscape of large language models (LLMs), effectively communicating an entire project's context is crucial, especially when working directly within LLM chat interfaces. Copying and pasting individual files one by one into a chat is cumbersome, error-prone, and often leads to an incomplete understanding by the AI.
FTY Utilities offers an elegant solution to this challenge by providing a single, human-readable YAML representation of your entire project's structure and content. For small to medium-sized projects, this means you can:
.gitignore rules, allowing for a much deeper and more accurate understanding of your codebase.FTY effectively transforms a complex directory into a manageable, shareable, and AI-consumable text block, making your interactions with LLM chat interfaces significantly more productive and powerful.
The core of these utilities is the FTY format itself. You can find detailed specifications of the FTY format in both English and Russian:
.gitignore Support: Automatically integrate .gitignore rules for seamless project packing.In your project where you want to use FTY Utilities:
npm install --save-dev fty-utils
# or
pnpm add --save-dev fty-utils
package.jsonAdd fty-pack and fty-unpack scripts to your project's package.json for easy access:
{
"name": "my-project",
"version": "1.0.0",
"scripts": {
"fty-pack": "fty-pack . -o package.fty.yaml --gitignore -i node_modules,dist",
"fty-unpack": "fty-unpack package.fty.yaml -o ."
},
"devDependencies": {
"fty-utils": "^1.0.0"
}
}
fty-pack script will pack the current directory (.) into package.fty.yaml, ignoring typical development artifacts (node_modules, dist), and respecting .gitignore rules.fty-unpack script will unpack package.fty.yaml back into the current directory.From your project's root directory:
npm run fty-pack
# or
pnpm run fty-pack
You can also use npx (or pnpm dlx) to run the commands directly without defining them in package.json scripts:
npx fty-pack <directory_path> [options]
# Example: npx fty-pack . -o my_project.fty.yaml --gitignore -i node_modules,dist
CLI Options for fty-pack:
<directory_path>: The path to the directory you want to pack. This is the only required argument.-o, --output <file>: Specifies the output FTY file path. If omitted, the default is <directory_name>.fty.yaml in the current working directory.-i, --ignore <patterns>: A comma-separated list of patterns (e.g., "node_modules,dist") to ignore during packing. These patterns are relative to the <directory_path>.--gitignore: If present, the packer will read the .gitignore file in the <directory_path> and apply its rules. The .gitignore file itself will be ignored.-h, --help: Display the help message.From your project's root directory:
npm run fty-unpack
# or
pnpm run fty-unpack
Or using npx (or pnpm dlx):
npx fty-unpack <fty_file_path> [options]
# Example: npx fty-unpack package.fty.yaml -o .
CLI Options for fty-unpack:
<fty_file_path>: The path to the FTY YAML file you want to unpack. This is the only required argument.-o, --output <directory>: Specifies the target directory for unpacking. If omitted, the default is unpacked_<file_name_without_ext> in the current working directory (e.g., unpacked_my_project).-h, --help: Display the help message.fty-utilsIf you are developing fty-utils itself:
npm install (or pnpm install).npm run build (or npx tsc). This will compile the TypeScript source files in src/ into JavaScript files in dist/.npm run test.Feel free to explore the src/index.ts file for the core packDirectory and unpackDirectory logic. Contributions, bug reports, and feature requests are welcome!
FAQs
Utilities to pack and unpack directories using FTY format
We found that fty-utils 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.