npm.io
0.2.2 • Published 11 years ago

s3-url

Licence
CC0-1.0
Version
0.2.2
Deps
1
Vulns
6
Weekly
0
Stars
3

s3-url

Go between URLs and AWS options for S3.

build status coverage license version downloads

dependencies dev-dependencies peer-dependencies

Sometimes you just need to convert an s3://bucket/key to something you can feed into AWS. This library has you covered.

var s3Url = require('s3-url');
s3Url.optionsToURL({ Bucket: 'bucket', Key: 'key' });
var s3Url = require('s3-url');
s3Url.urlToOptions('s3://bucket/key');

Keywords