From 0224f237a38a4aeb7f7102c64e050be530c78008 Mon Sep 17 00:00:00 2001 From: Kyle Farris Date: Mon, 21 Oct 2024 12:12:09 -0400 Subject: [PATCH] Updated API docs. --- API.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/API.md b/API.md index 940a7da..4ea32c8 100644 --- a/API.md +++ b/API.md @@ -38,6 +38,7 @@ By default, it will retrieve files recursively.

NodeClam class definition. **Kind**: global class +**Access**: public * [NodeClam](#NodeClam) * [new NodeClam()](#new_NodeClam_new) @@ -94,7 +95,7 @@ Initialization method. | [options.clamdscan.bypassTest] | boolean | false | If true, check to see if socket is avaliable | | [options.clamdscan.tls] | boolean | false | If true, connect to a TLS-Termination proxy in front of ClamAV | | [options.preference] | object | 'clamdscan' | If preferred binary is found and active, it will be used by default | -| [cb] | function | | Callback method. Prototype: `(err, )` | +| [cb] | function | | Callback method. Prototype: `(err, )` | **Example** ```js @@ -137,10 +138,10 @@ Allows one to create a new instances of clamscan with new options. **Returns**: Promise.<object> - A reset instance of NodeClam **Access**: public -| Param | Type | Description | -| --- | --- | --- | -| [options] | object | Same options as the `init` method | -| [cb] | function | What to do after reset (repsponds with reset instance of NodeClam) | +| Param | Type | Default | Description | +| --- | --- | --- | --- | +| [options] | object | {} | Same options as the `init` method | +| [cb] | function | | What to do after reset (repsponds with reset instance of NodeClam) | @@ -179,10 +180,10 @@ be the most common use-case for this module. **Returns**: Promise.<object> - Object like: `{ file: String, isInfected: Boolean, viruses: Array }` **Access**: public -| Param | Type | Description | -| --- | --- | --- | -| file | string | Path to the file to check | -| [cb] | function | What to do after the scan | +| Param | Type | Default | Description | +| --- | --- | --- | --- | +| file | string | | Path to the file to check | +| [cb] | function | | What to do after the scan | **Example** ```js