awsls2json
Converts the output of the aws cli command aws s3 ls
to JSON format.
Reference:
Usage
convert.js:
const fs = ;const awsls2json = ; const filelist = fs;const json = ; console;
From the command line, or CI:
aws s3 ls s3://my-bucket-path/target-folder > filelist.txtnode convert.js
Example Input
PRE eab12b4/PRE ff3d347/PRE unminified/2016-11-09 16:13:02 8 latest-regression-candidate
Example Output
Changelog
Version 1.0.2
- Remove trailing slash from folder keys
Version 1.0.1
- Add support for folders
Version 1.0.0
- Initial release, with support for a files in a folder