longform-markdown-splitter
Version:
Splits and transforms markdown files from obsidian for usage in hugo.
22 lines (21 loc) • 933 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import * as fs from "fs";
import { URL } from "url";
import { MD_Mapping } from "./md-mapping";
export interface CSV_Exporter_Parameter_Type {
readPath: string;
writePath: string;
csvSeparator: string;
mappings?: MD_Mapping[];
}
export declare class CSV_Exporter {
static transform_to_json(job_parameter: CSV_Exporter_Parameter_Type): void;
static download_all_images_from_json(source_file: string, target_folder: string, url_property_name: string): void;
static download_image(url: string, filepath: fs.PathLike): Promise<unknown>;
static is_valid_url_protocol(url: string): boolean;
static is_valid_url(url: string): boolean;
static trim_char(str: string, ch: string): string;
static cleanup(str: string): string;
static imageToBase64(url: string | URL | Request, callback: (arg0: string | ArrayBuffer) => void): void;
}