Content-Length: 236316 | pFad | http://github.com/mac2000/mac2000/tree/main/src

69 mac2000/src at main · mac2000/mac2000 · GitHub
Skip to content

Latest commit

 

History

History

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
import {readFileSync} from 'fs'
import {stats} from './github/stats.js'
import {languages} from './github/languages.js'
import {contributions} from './github/contributions.js'
import {wakatime} from './wakatime.js'

export const readme = async (githubToken, wakatimeToken) => {
    let md = readFileSync(new URL('../assets/template.md', import.meta.url), 'utf-8')
    md = md.replace('`github-contributions`', await contributions(githubToken))
    md = md.replace('`github-stats`', await stats(githubToken))
    md = md.replace('`github-languages`', await languages(githubToken))
    const waka = await wakatime(wakatimeToken)
    md = md.replace('`wakatime-languages`', waka.languages)
    md = md.replace('`wakatime-editors`', waka.editors)
    md = md.replace('`wakatime-platforms`', waka.platforms)
    return md
}

// console.log(await readme(process.env.GITHUB_PASSWORD, process.env.WAKATIME_TOKEN))








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/mac2000/mac2000/tree/main/src

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy