1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
gitfolio/update.js
Rohan Mohapatra 4a2872171d Added Handles for Twitter, Linkedin and Medium to GitFolio (#84)
* Added Handles for Twitter, Linkedin and Medium to GitFolio

* Updates README

* Updates README
2019-07-18 19:13:21 +05:30

22 lines
751 B
JavaScript

const {getConfig} = require('./utils');
const {updateHTML} = require('./populate');
async function updateCommand() {
const data = await getConfig();
var username = data[0].username;
var sort = data[0].sort;
var order = data[0].order;
var includeFork = data[0].includeFork;
var twitter = data[0].twitter;
var linkedin = data[0].linkedin;
var medium = data[0].medium;
if(username == null || sort == null || order == null || includeFork == null){
console.log("username not found in config.json, please run build command before using update");
return;
}
updateHTML(username, sort, order, includeFork, twitter, linkedin, medium);
}
module.exports = {
updateCommand
};