mdat
Version:
CLI tool and TypeScript library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.
8 lines (7 loc) • 412 B
TypeScript
import { type LoaderResult } from 'cosmiconfig';
/**
* Lets arbitrary JSON objects (like from package.json) become reasonably good mdat rule sets
* HOWEVER cosmiconfig treats package.json as a special case and will always load only specific keys from it
* So we have to intercept and load them manually in config.ts
*/
export declare function mdatJsonLoader(filePath: string, content: string): LoaderResult;