H5P NodeJS Library
    Preparing search index...

    An interface for malware scanners. See the ../../docs/advanced/security.md | documentation for details on how to use this class.

    interface IFileMalwareScanner {
        name: string;
        scan(
            file: string,
        ): Promise<{ result: MalwareScanResult; viruses?: string }>;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    name: string

    The name of the scanner, e.g. ClamAV

    Methods

    • Scans a file for malware and returns whether it contains malware.

      Parameters

      • file: string

      Returns Promise<{ result: MalwareScanResult; viruses?: string }>