2.1.0 • Published 7 years ago

gitconfiglocal v2.1.0

Weekly downloads
1,595,111
License
BSD
Repository
github
Last release
7 years ago

Build Status

gitconfiglocal

parse the .git/config file into a useful data structure

example

  • search config in $GIT_DIR (.git by default)
var gitconfig = require('gitconfiglocal');

gitconfig('./',function(err,config){
  console.log(config);
  /* prints:
  { core:
     { repositoryformatversion: '0',
       filemode: true,
       bare: false,
       logallrefupdates: true },
    remote:
     { origin:
        { url: 'git@github.com:soldair/node-gitconfiglocal.git',
          fetch: '+refs/heads/*:refs/remotes/origin/*' } } }
  */
});
  • specify $GIT_DIR via options:
gitconfig('./', { gitDir: 'path/to/gitdir' }, cb);
git-remote-origin-urleasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfpublishcommandtestdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdk@jttechnic/interpreterreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutils@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-gitcluminos-ui-core@everything-registry/sub-chunk-1764jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarytailwind-vector-effecttest-library-123test-haptik-libwinx-form-winxwexperimentwifi_configuration_packagewillbetest-zeo-collecttestgrid-cypress-clivision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactvue-dev-clone@dotconf-pro/dotconf-pro@dotconf-pro/dotenv@cs6/react-native-test-native-view-library@con-test/react-native-concent-common@damruravihara/react-native-testing-package@contextmap/typescript-compiletime@corelmax/react-native-my2c2p-sdk@praella/localisationist@positionex/position-sdkjrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjamuskalimkhaled-salem-custom-componentslazy-bee-uijawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativesushi-sdk-ftmrn-agora-ios-mzzzxxxyyy321123react-native-omental-frameworkreact-native-sixdee_test_lib@apardellass/react-native-audio-stream@aschmidt8/netlify-cli@appland/appmap@bixi-design/builder@buganto/client@brantalikp/rn-resize@cdk8s-extensions/argo-rollout@boundless-inc/mobiledoc-dom-renderer@decoupled/netlify-cliyarn-react-hook-formwatch-gh-repos@parallelnft/web3modal@felipesimmi/react-native-datalogic-module@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcuts@hjin/generator-app@hundredpoints/cli@idas1/ui-component-lib@geeky-apo/react-native-advanced-clipboard@eliperelman/netlify-cli@geut/git-compare-template@geut/git-url-parse@geut/chan-parser@labiebhn_/react-native-multiplier@lordbeanbag/vite-plugin-svg-icons-monorepo@lehuyaa/my-assets@mapbox/github-release-tools@nightwatch/browserstack@navabi/react-native-ssl-pinning
2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

10 years ago

1.0.0

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

12 years ago

0.0.0

12 years ago