Convenience function for moving a single file: a markdown file or a non-markdown asset (such as an image) that markdown files link to. Any markdown file that references the moved file has its link updated to the new location.
The current file path
The target file path
Optional configuration
Promise resolving to operation result
import { moveFile } from 'markmv'; const result = await moveFile('docs/old.md', 'docs/new.md', { dryRun: true }); Copy
import { moveFile } from 'markmv'; const result = await moveFile('docs/old.md', 'docs/new.md', { dryRun: true });
Convenience function for moving a single file: a markdown file or a non-markdown asset (such as an image) that markdown files link to. Any markdown file that references the moved file has its link updated to the new location.