Write content to github config file
It reads the github config file and returns it contents. It needs respository path as input to read the config.
Give us a ⭐ if you like our work ❤️
Please consider donating, if you like my work
$ npm install @gh-conf/gh-conf-write
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);
}
})();
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