MCPcopy
hub / github.com/webpro/reveal-md / readablePath

Function readablePath

lib/static.js:28–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26const relativeDir = (from, to) => path.relative(from, to).replace(/^\.\./, '.');
27
28const readablePath = file =>
29 file.replace(/^.*(reveal-md\/node_modules.+)/, '$1').replace(new RegExp(`^${process.cwd()}/`), '');
30
31const cp = (source, target) => {
32 if (!files.has(target)) {

Callers 1

cpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected