UNPKG

dotgitconfig

Version:
40 lines (29 loc) 1.19 kB
# dotgitconfig --- [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![node version][node-image]][node-url] [![npm download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/dotgitconfig.svg?style=flat-square [npm-url]: https://npmjs.org/package/dotgitconfig [travis-image]: https://img.shields.io/travis/xudafeng/dotgitconfig.svg?style=flat-square [travis-url]: https://travis-ci.org/xudafeng/dotgitconfig [coveralls-image]: https://img.shields.io/coveralls/xudafeng/dotgitconfig.svg?style=flat-square [coveralls-url]: https://coveralls.io/r/xudafeng/dotgitconfig?branch=master [node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg?style=flat-square [node-url]: http://nodejs.org/download/ [download-image]: https://img.shields.io/npm/dm/dotgitconfig.svg?style=flat-square [download-url]: https://npmjs.org/package/dotgitconfig > get .git/config as an object ## Installment ```bash $ npm i dotgitconfig --save-dev ``` ## Usage ```javascript const dotgitconfig = require('dotgitconfig'); dotgitconfig(process.cwd()); ``` ## License The MIT License (MIT)