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

git-commands

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-commands

Execute git command using Node.js

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
27
-40%
Maintainers
1
Weekly downloads
 
Created
Source

git-commands

nodejs操作git
Execute git command using Node.js

Install

npm i git-commands --save

Usage

const Git = require('git-commands')
const git = new Git({ reps: 'your git repository path' })
// status
console.log( git.command('status') )

// pull
console.log( git.command('pull') )

// checkout 
console.log( git.command('checkout master') )

// push
console.log( git.command('push origin master') )

Keywords

node git

FAQs

Package last updated on 03 Jul 2018

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