MCPcopy Create free account
hub / github.com/Effect-TS/effect / getCwd

Function getCwd

packages/tools/jsdocs/src/Jsdocs.ts:854–856  ·  view source on GitHub ↗
(context: { readonly cwd?: string; getCwd?: () => string })

Source from the content-addressed store, hash-verified

852 * @since 4.0.0
853 */
854export function getCwd(context: { readonly cwd?: string; getCwd?: () => string }): string {
855 return context.cwd ?? context.getCwd?.() ?? process.cwd()
856}
857
858function skipWhitespace(source: string, end: number): number {
859 while (end > 0 && /\s/.test(source[end - 1])) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected