JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q64774F
  • License MIT

S3 URL manipulation helper

Package Exports

  • s3u
  • s3u/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (s3u) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

s3u

Tests npm version

Description

S3 URL manipulation helper

Key features

  • Support different S3 providers
  • Simple and lightweight
  • No dependencies

Installation

Install with npm:

npm install --save s3u

Usage

const { S3Url } = require('s3u');

const url = S3Url.fromUrl('https://mybucket.s3.amazonaws.com/');

url.key = 'My file.txt';

console.log(url.toString());
// https://mybucket.s3.amazonaws.com/My+file.txt

License

Licensed under MIT.