Convenience function for moving multiple files (markdown files, non-markdown assets, or a mix of both) in a single batch
Array of source/destination pairs
Optional configuration
Promise resolving to operation result
import { moveFiles } from 'markmv'; const result = await moveFiles([ { source: 'old1.md', destination: 'new1.md' }, { source: 'old2.md', destination: 'new2.md' } ]); Copy
import { moveFiles } from 'markmv'; const result = await moveFiles([ { source: 'old1.md', destination: 'new1.md' }, { source: 'old2.md', destination: 'new2.md' } ]);
Convenience function for moving multiple files (markdown files, non-markdown assets, or a mix of both) in a single batch