mcpwn API
    Preparing search index...

    Function wrapFile

    • Wrap a config file on disk. Backs up the exact pre-wrap bytes to <path>.mcpwn.bak before writing. No-op (no backup, no write) when nothing changes, so re-running is safe.

      Parameters

      • opts: {
            dryRun?: boolean;
            invocation: WrapInvocation;
            only?: string;
            path: string;
            serversKey: string;
        }

      Returns WrapFileResult