An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# parse-aws-s3-url [![Build Status](https://travis-ci.org/akofman/parse-aws-s3-url.svg?branch=master)](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.