computeNamespace
Compute the namespace (POSIX path relative to src, no extension) for a source file.
Import:
import { computeNamespace } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-source-processing';Signature:
function computeNamespace(srcDirectory: string, filePath: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
srcDirectory |
string | The source folder the namespace is relative to. |
filePath |
string | The file’s path. |
Returns: string — The namespace.