app-root-path
Version:
Determine an app's root path from anywhere inside the app
9 lines (8 loc) • 308 B
TypeScript
declare namespace appRootPath {
export function resolve(pathToModule: string): string
export function require(pathToModule: string): ReturnType<NodeRequire>
export function toString(): string
export function setPath(explicitlySetPath: string): void
export const path: string
}
export = appRootPath