parse-aws-s3-url

1.0.1 • Public • Published

parse-aws-s3-url Build Status

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'}

License

MIT Licensed. Copyright (c) Alexis Kofman 2018.

Readme

Keywords

Package Sidebar

Install

npm i parse-aws-s3-url

Weekly Downloads

196

Version

1.0.1

License

MIT

Unpacked Size

2.38 kB

Total Files

4

Last publish

Collaborators

  • alexiskofman