1.1.3 • Published 3 years ago

@gh-conf/gh-conf-read v1.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

gh-conf-read

Build Status Github Repo Size Contributors Commit NPM Version

It reads the github config file and returns it contents. It needs respository path as input to read the config.

Give us a :star: if you like our work :heart:

Please consider donating, if you like my work

Install

$ npm install @gh-conf/gh-conf-read

Usage

const { readConf } = require('@gh-conf/gh-conf-read');

(async () => {
  try {
    const configContent = await readConf('./gh-conf-read');
    console.log(configContent);
    /**
     * [core]
     *     repositoryformatversion = 0
     *     filemode = true
     *     bare = false
     *     logallrefupdates = true
     * [remote "origin"]
     *     url = git@github.com:gh-conf/gh-conf-read
     *     fetch = +refs/heads/*:refs/remotes/origin/*
     * [branch "master"]
     *   remote = origin
     *   merge = refs/heads/master
     * [user]
     *     name = Arshad Kazmi
     *     email = arshadkazmi42@gmail.com
     **/
  } catch (error) {
    console.log(error);
  }
})();

Contributing

Interested in contributing to this project? You can log any issues or suggestion related to this library here

Read our contributing guide on getting started with contributing to the codebase

Contributors

Thank you to all the contributors who have helped us in making this project better :raised_hands: