"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/apps/utils.ts" (20 Feb 2024, 251 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import * as fs from 'fs';
    2 import { renderMarkdown } from '../../cli/commands/help/markdown-renderer';
    4 export function readAppsHelpMarkdown(filename: string): string {
    5   const file = fs.readFileSync(filename, 'utf8');
    6   return renderMarkdown(file);
    7 }