New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc