
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
Builds a hierarchy of directories and files as a single asynchronous operation.
npm install fs-tree
fsTree = require 'fs-tree'
fsTree! {
ideas = {
colours = {
"green.txt" = "apples, pears"
"white.txt" = "snow"
}
}
}
...creates these directories and files:
./ideas/
./ideas/colours/
./ideas/colours/green.txt (apples, pears)
./ideas/colours/white.txt (snow)
Each entry can be a string, a Buffer or a node stream (anything that has a .pipe() method).
By default the hierarchy is created in the current working directory.
Make a hierarchy under another directory like this:
fsTree! '/your/root/directory' {
subdir = {
file = "contents"
}
}
Retain a reference to the original tree to destroy it later:
tree = fsTree! {
subdir = {
file = "contents"
}
}
// then later...
tree.destroy()!
Destroying the tree is equivalent to
rm -rf <root directory>
The examples above are in PogoScript because it's pretty. There is no dependency on PogoScript, so you can use pure JavaScript if you prefer. It returns a promise:
var fsTree = require('fs-tree');
fsTree({
ideas: {
colours: {
"green.txt": "apples, pears",
"white.txt": "snow"
}
}
}).then(function() {
console.log("Tree created!");
}, function (error) {
console.log("uh oh", error);
});
BSD
FAQs
Builds hierarchies of directories and files
The npm package fs-tree receives a total of 924 weekly downloads. As such, fs-tree popularity was classified as not popular.
We found that fs-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.