UNPKG

drek

Version:

A static-code-analysis tool that can be used to perform security-focused code reviews. It enables an auditor to swiftly map the attack-surface of a large application, with an emphasis on identifying development anti-patterns and footguns.

18 lines (14 loc) 303 B
const csv = require('json2csv'); const sort = require('./util-sort'); module.exports = function(options, config, matches) { // csv fields const fields = [ 'id', 'filetype', 'file', 'search', 'match', 'line', ]; return csv({ data: sort(matches), fields: fields }); };