https://github.com/akofman/parse-aws-s3-url
Parse an S3 URL and returns a suitable object for using with AWS SDK methods.
https://github.com/akofman/parse-aws-s3-url
aws s3
Last synced: about 1 year ago
JSON representation
Parse an S3 URL and returns a suitable object for using with AWS SDK methods.
- Host: GitHub
- URL: https://github.com/akofman/parse-aws-s3-url
- Owner: akofman
- License: mit
- Created: 2018-12-03T12:03:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-04T12:17:31.000Z (over 7 years ago)
- Last Synced: 2025-04-23T03:49:36.075Z (about 1 year ago)
- Topics: aws, s3
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# parse-aws-s3-url [](https://travis-ci.org/akofman/parse-aws-s3-url)
> Parse an S3 URL and returns a suitable object for using with AWS SDK methods.
## Install
```
$ npm install parse-aws-s3-url
```
## Usage
```js
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.