Skip to content

AntonioRecaldeRusso/s3-url-parser

Repository files navigation

Attention

I haven't been able to work on this for a while. There are some formats that are not supported

S3 URL PARSER

This library helps you extract the following information from S3 urls of any format:

  • bucket name
  • region
  • key

Formats:

Usage

import s3ParseUrl from 's3-url-parser';

const sampleUrl = 'http://my-bucket.s3.us-west-2.amazonaws.com/key-to-my-s3-object';
const { bucket, region, key } = s3ParseUrl(sampleUrl);

/*
  bucket = 'my-bucket'
  region = 'us-west-2'
  key = 'key-to-my-s3-object'
 */

About

Tool for parsing S3 urls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •