Scanning with scanoss.json
To scan using a scanoss.json settings file, load and parse the file, pass it to ScannerCfg.SCANOSS_SETTINGS, and configure the Scanner with your API key and endpoint before calling scan():
Scanner Events Reference
TheScanner class (and Fingerprint, which shares the same event system) emits the
following events, which can be subscribed to via .on():
| Event | Description |
|---|---|
SCAN_DONE | Scan completed; provides the path to the results file |
SCANNER_LOG | Internal log messages emitted by the scanner |
DISPATCHER_NEW_DATA | New results received from the server; not yet written to the output file |
RESULTS_APPENDED | Buffered results written and appended to the output file |
WINNOWING_STATUS | Progress update during fingerprint generation |
ERROR | An error occurred during scanning |