Socket
Book a DemoInstallSign in
Socket

gift-recursive-tree

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gift-recursive-tree

Simple utility to take a Gift repository and get a recursive tree

1.0.6
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Gift Recursive Tree

Simple utility to take a Gift repository and get a recursive tree

Installation

$ npm install gift-recursive-tree

Usage

You must have first instantiated an Gift repository. Passing in an array of Commits, will yield the tree, recursively, for those commits. The result will be one concatenated list. This will add a path field which has the full path.

Example:

git = require 'gift'
giftRecursiveTree = 'gift-recursive-tree'

git.clone "git@host:path/to/remote/repo.git", "path/to/local/clone/repo", (err, _repo) ->
  repo = _repo

  repo.current_commit (err, _commit) ->
    giftRecursiveTree.getTree repo, [_commit], (err, tree) ->
      console.log tree

Keywords

git

FAQs

Package last updated on 18 Dec 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.