YoshiyukiKato / nightharbor-s3-reporter

A nightharbor reporter for AWS S3
MIT License
0 stars 0 forks source link
aws lighthouse s3

nightharbor-s3-reporter

CircleCI sonarcloud badge Greenkeeper badge

A nightharbor reporter for AWS S3.

$ npm install --save aws-sdk nightharbor nightharbor-s3-reporter

report by json and csv

import {S3CsvReporter,S3JsonReporter} from "nightharbor-s3-reporter";
import AWS from "aws-sdk";
AWS.config.update({/** your configuration */});
const s3 = new AWS.S3();

export default {
  ...,
  reporters: [
    new S3JsonReporter(s3, "bucket name", "/path/to/output.json"),
    new S3CsvReporter(s3, "bucket name", "/path/to/output.csv")
  ]
  ...
}