Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gh-conf/gh-conf-write

Writes to gihub config file
https://github.com/gh-conf/gh-conf-write

config gh-conf gh-conf-write github github-config github-config-write

Last synced: about 1 month ago
JSON representation

Writes to gihub config file

Awesome Lists containing this project

README

        

# gh-conf-write

Write content to github config file

[![Build Status](https://travis-ci.com/gh-conf/gh-conf-write.svg?branch=master)](https://travis-ci.com/gh-conf/gh-conf-write)
[![Github Repo Size](https://img.shields.io/github/repo-size/gh-conf/gh-conf-write.svg)](https://github.com/gh-conf/gh-conf-write)
[![Contributors](https://img.shields.io/github/contributors/gh-conf/gh-conf-write.svg)](https://github.com/gh-conf/gh-conf-write/graphs/contributors)
[![Commit](https://img.shields.io/github/last-commit/gh-conf/gh-conf-write.svg)](https://github.com/gh-conf/gh-conf-write/commits/master)
[![NPM Version](https://img.shields.io/npm/v/@gh-conf/gh-conf-write.svg)](https://www.npmjs.com/package/@gh-conf/gh-conf-write)

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:

Buy Me A Coffee
Become a Patron!

Please consider donating, if you like my work

## Install

```
$ npm install @gh-conf/gh-conf-write
```

## Usage

```javascript
const { writeConf } = require('@gh-conf/gh-conf-write');

(async () => {
try {
const writeResult = await writeConf('./gh-conf-write', 'CONTENT');
console.log(writeResult);
/**
* {
* status: 'success',
* message: 'Config updated',
* data: {
* content: 'CONTENT'
* }
* }
**/
} catch (error) {
console.log(error);
}
})();

```

## Contributing

Interested in contributing to this project?
You can log any issues or suggestion related to this library [here](https://github.com/gh-conf/gh-conf-write/issues/new)

Read our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase

## Contributors