
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@altano/repository-tools
Advanced tools
Misc tools for dealing with repositories of multiple version control systems (git, svn, etc)
Misc tools for dealing with repositories of multiple version control systems
Given a path inside a repository, find the path of the root
Example:
findRootSync("/my-git-repo/some/subdirectory"); // => "/my-git-repo"
Example:
await findRoot("/my-git-repo/some/subdirectory"); // => "/my-git-repo"
NOTE: As of v1.0.0 this is an ESM-only module package. It can be imported as an ESM module from any Node.js version but if requiring this package from a CJS package, you must use Node.js v20.19.0+ or v22.12.0+. If you get a ERR_REQUIRE_ESM
error when calling require("@altano/repository-tools")
make sure you're on a new enough version of Node.js.
You may import all the tools, or import functions directly:
Using sub-path exports | Import to use |
---|---|
No | import { findRoot } from "@altano/repository-tools"; |
Yes | import { findRoot } from "@altano/repository-tools/findRoot.js"; |
FAQs
Misc tools for dealing with repositories of multiple version control systems (git, svn, etc)
We found that @altano/repository-tools 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.