Parse an S3 URL and returns a suitable object for using with AWS SDK methods.
Install
$ npm install parse-aws-s3-url
Usage
const parseS3Url = require('parse-aws-s3-url');
const parts = parseS3Url('s3://my-bucket/path/to/my/file.png');
//=> parts = {Bucket: 'my-bucket', Key: 'path/to/my/file.png'}