TypeScript SDK

Detectant TypeScript SDK
Detectant is a malware scanning API with support for TypeScript
Scan files for malware from Node.js and TypeScript.
Install
Set your API key in the environment:
Create a client
Scan one file
The simplest Node.js option is a file path:
The call completes after the file has been analyzed and returns its scan result.
Supported file inputs
Choose the input that already fits your application:
For in-memory data, add a filename and content type when they are known:
The SDK accepts file paths, Node.js streams, web ReadableStreams, Buffers,
Uint8Arrays, ArrayBuffers, Blobs, and Files.
Scan a batch
Upload between 1 and 20 files. Results are returned in the same order as the inputs.
One file can fail without preventing the other files in the batch from being scanned. Check each item’s scan and error values.
Configuration
Increase the timeout for large files when needed:

