UNPKG

@astro-paper/cli

Version:

A comprehensive CLI tool for AstroPaper blog theme management

8 lines (7 loc) 260 B
import path from 'path'; import fs from 'fs-extra'; export async function getPostInfo(projectRoot) { const siteConfigPath = path.join(projectRoot, 'src/config.ts'); const siteConfig = await fs.readFile(siteConfigPath, 'utf8'); return siteConfig; }