Skip to main content
Module

x/reader/lib/snippet/standard/standard-repo.ts

A simple tool for transforming Markdown repositories into readable documents –
Latest
File
import * as path from 'https://deno.land/std@0.132.0/path/mod.ts';
const fragment: { [prop: string]: any } = {};const internal: { [prop: string]: any } = {};
fragment.requestConfig = async (): Promise<null | { name: string }> => { try { const cmd = Deno.run({ cmd: ['git', 'config', '--get', 'remote.origin.url'], stdout: 'piped', stderr: 'piped', });
const output = await cmd.output(); const outStr = new TextDecoder().decode(output);
return { name: outStr.split('/').pop()!.replace('.git', '').replaceAll('\n', ''), }; } catch (err) {}
return null;};
export default { ...fragment };