legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
13 lines • 515 B
TypeScript
/**
* @fileoverview ESM utility functions for safe environment detection
*
* This module provides safe utilities for working with ESM modules without
* using eval() or other potentially unsafe patterns.
*/
/**
* Safely get the current directory name in both CommonJS and ESM environments
* @param importMetaUrl - Optional import.meta.url for ESM environments
* @returns Current directory path
*/
export declare function getCurrentDir(importMetaUrl?: string): string;
//# sourceMappingURL=esm-utils.d.ts.map