@altano/repository-tools
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

repository-tools

Misc tools for dealing with repositories of multiple version control systems

Supported Version Control Systems

  • git
  • mercurial
  • sapling
  • subversion

Tools

findRoot[Sync]

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"

Package Sidebar

Install

npm i @altano/repository-tools

Weekly Downloads

3

Version

0.0.2

License

ISC

Unpacked Size

8.63 kB

Total Files

14

Last publish

Collaborators

  • altano