Socket
Socket
Sign inDemoInstall

git-scope-config

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-scope-config

read or set git config file


Version published
Maintainers
1
Created
Source

git-scope-config NPM version Build Status Dependency Status

read or set git config from various location like global, system, file, local

Install

$ npm install --save git-scope-config

Example

JavaScript

var configGit = require('git-scope-config');

configGit({scope: "global"}).set("github.user", "Yashprit Singh", function(err, data){
  console.log(data); //=> true
})

Command Line reference

$ npm install --g git-scope-config
$ git-scope-config --scope global --key github.user --value Yashprit Singh

Methods

var configGit = require("git-scope-config");
configGit({
  scope: "global"
})

set([key], [value], cb)

Set value for key in defined scope, created by above constructor. e.g. git config --global github.user Yashprit Singh

get([key], cb)

Get value for key, for above scope. If no key specified than get all key, similar to --get-all

unset([key], cb)

Unset value for given key, if no key specified than unset-all, using --unset-all

Run Test

npm test

Contribute or Report Issue

For bugs and feature requests, please create an issue.

License

MIT © Yashprit

Keywords

FAQs

Package last updated on 11 Jun 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

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