carrot-scan
Version:
Command-line tool for detecting vulnerabilities in files and directories.
16 lines (14 loc) • 388 B
text/typescript
import { Injectable } from '@angular/core';
import { scan, ScanResult } from '@carrot-scan/core';
import { from, Observable } from 'rxjs';
({
providedIn: 'root',
})
export class CarrotScanService {
scan(
target: string | string[],
options?: { mode?: 'fast' | 'complete'; json?: boolean }
): Observable<ScanResult> {
return from(scan(target, options));
}
}