nightharbor-s3-loader
v0.1.0
Published
a nightharbor loader for aws s3
Downloads
1
Readme
nightharbor-s3-loader
A nightharbor loader for AWS S3.
$ npm install --save aws-sdk nightharbor nightharbor-s3-loader
load targets from json and csv
import {S3CsvLoader,S3JsonLoader} from "nightharbor-s3-loader";
import AWS from "aws-sdk";
AWS.config.update({/** your configuration */});
const s3 = new AWS.S3();
export default {
...,
loaders: [
new S3JsonLoader(s3, "bucket name", ["/path/to/target.json",...]),
new S3CsvLoader(s3, "bucket name", ["/path/to/target.csv",...])
]
...
}