coscan
v0.5.0
Published
CLI and Node.js API implementations of coscan.
Readme
coscan
CLI and Node.js API implementations of coscan.
Installation
npm add -D coscanUsage
CLI
npx coscan src/app.tsx --output results.jsonConfiguration
| Flag | Type | Description |
| ----------------- | ----------------------- | --------------------------------- |
| --output -o | string | Output file for the scan results. |
| --reporter -r | json:raw json:count | Reporter to use for output. |
Node.js API
import { coscan } from 'coscan';
coscan({
files: ['src/app.tsx'],
});Configuration
| Property | Type | Default | Description |
| ---------- | ---------------------- | --------------------------------- | --------------------------------------------------------------------- |
| files | string[] | [] | Files to be scanned, can be an entry into an app or individual files. |
| reporter | Reporter | { type: 'json', detail: 'raw' } | Reporter to use for output. |
