markmv - v1.39.2
    Preparing search index...

    Function refactorIndexCommand

    • Execute the refactor-index command, converting a README.md to index.md or an index.md to README.md in place with automatic link updates.

      This is the entry point for the CLI command. It reports the outcome in conventional or JSON form, exits non-zero when the conversion is refused or fails, and surfaces parse failures the move machinery encountered along the way.

      Parameters

      Returns Promise<void>

      typescript await refactorIndexCommand('docs/README.md', { to: 'index' }); ;

      Will exit the process with code 1 if the operation is refused or fails