parse-s3-bucket-key

0.0.1 • Public • Published

parse-s3-bucket-key

Build Status npm npm

Parse Bucket and Key from an S3 object link.

Installation

    npm install parse-s3-bucket-key

Usage

// It also supports "s3://" protocol: 's3://bucket-name/file/path/sample.json';
const {Bucket, Key} = parseS3BucketKey('https://s3.amazonaws.com/bucket-name/file/path/sample.json');
 
// Result:
{
    Bucket: 'bucket-name',
    Key: 'file/path/sample.json'
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    56
    • latest

Version History

Package Sidebar

Install

npm i parse-s3-bucket-key

Weekly Downloads

50

Version

0.0.1

License

MIT

Unpacked Size

2.23 kB

Total Files

5

Last publish

Collaborators

  • diegozoracky