markmv - v1.26.2
    Preparing search index...

    Function moveFile

    • Convenience function for moving a single markdown file

      Parameters

      • sourcePath: string

        The current file path

      • destinationPath: string

        The target file path

      • options: MoveOperationOptions = {}

        Optional configuration

      Returns Promise<OperationResult>

      Promise resolving to operation result

        import { moveFile } from 'markmv';

      const result = await moveFile('docs/old.md', 'docs/new.md', {
      dryRun: true
      });