New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ppwcode/node-gitinfo

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ppwcode/node-gitinfo

Get information about the current state of the highest git working copy we are in

Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
27
2600%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js package to get information about the current status of a git working copy.

This package was created to be used in the context of Terraform. See terraform-ppwcode-modules.

JavaScript Style Guide

Installation

To install, do

> yarn add \@ppwcode/node-gitinfo

or

> npm install --save \@ppwcode/node-gitinfo


Usage in code

When used in other code, use

const GitInfo = require("@ppwcode/node-gitinfo)
 

You can tag with

const tagGitRepo = require("@ppwcode/node-gitinfo/tagGitRepo)


CLI

gitinfo.js is a CLI tool that uses this code. See

 > node ./bin/gitinfo.js -h
 

for help. This program is installed in npm as gitinfo.

 > node ./bin/gitinfo.js gi
 

is intended for use in a Terraform external data source provider. It returns JSON.

Style

JavaScript Style Guide

This code uses Standard coding style.

Keywords

git

FAQs

Package last updated on 29 Sep 2017

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