File Scan | Node.js SDK
File Scan
constructor(token: PangeaToken, config: PangeaConfig): FileScanServiceCreates a new FileScanService
with the given Pangea API token and
configuration.
const config = new PangeaConfig({ domain: "pangea_domain" });
const client = new FileScanService("pangea_token", config);
Scan
fileScan(request: ScanRequest, file: string | FileData, options: Options): Promise<PangeaResponse<ScanResult>>Scan a file for malicious content.
const request = { verbose: true, raw: true, provider: "crowdstrike" };
const response = await client.fileScan(request, "./path/to/file.pdf");