@coscan/json-reporter
v0.3.0
Published
JSON reporter for coscan.
Downloads
18
Readme
@coscan/json-reporter
JSON reporter for coscan.
[!NOTE] You probably don't need to use this package directly as it is intended to be used with
coscan
and should be installed as a dependency of that package.
Installation
npm add -D @coscan/json-reporter
Usage
import { jsonReporter } from '@coscan/json-reporter';
import { jsxScanner } from '@coscan/jsx-scanner';
async function main() {
const discoveries = await jsxScanner({
files: ['src/app.tsx'],
});
return jsonReporter(discoveries, { details: 'raw' });
}
const output = main();