import * as mod from "https://dotland.deno.dev/x/pagic@v1.6.3/src/utils/filepath.ts";
Variables
Get the runtime pagic root path, it should be a file-system-path or a url /User/xcatliu/work/github/pagic or https://deno.land/x/pagic |
Functions
input: ('foo/bar/baz.md', ['foo/_layout.tsx', '_layout.tsx']) output: 'foo/_layout.tsx' | |
input: foo/README.md output: foo/index.html | |
input: FooBar output: _foo_bar | |
input: foo/bar.html replacement: _content.js output: foo/bar_content.js | |
input: foo/bar.md output: foo/bar.html | |
input: _foo_bar output: FooBar | |
f walk | A util to replace fs.walk method, return relativeToSrcPath instead of fullPath |