File Intel | Node.js SDK
The File Intel service enables you to submit a file's hash and get the file's attributes back - giving you insight into the disposition of the file.
Reputation, from file path
filepathReputation(filepath: string, options: ReputationOptions): Promise<PangeaResponse<ReputationResult>>Retrieve file reputation from a provider, using the file's hash.
const options = { provider: "reversinglabs" };
const response = await fileIntel.filepathReputation("./myfile.exe", options);
Reputation, from file hash
hashReputation(fileHash: string, hashType: string, options: ReputationOptions): Promise<PangeaResponse<ReputationResult>>Retrieve hash-based file reputation from a provider, including an optional detailed report.
const options = { provider: "reversinglabs" };
const response = await fileIntel.hashReputation("142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e", "sha256", options);