Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

base64-string-s3

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

base64-string-s3

Stream a base64 encoded string directly to aws s3

    0.0.1latest

Version published
Maintainers
1
Yearly downloads
26,823
increased by250.81%

Weekly downloads

Readme

Source

Base64 string (stream) to s3

Stream a base64 encoded string directly to aws s3

Features

  • No big buffers
  • progress, response, error and close events
  • Optional chunkSize, defaults to 1024 bytes
  • Uses knox s3 client

Example

var Putter = require('base64-string-s3'); var options = { key: '<aws-key>', secret: '<aws-secret>', bucket: '<bucket>', chunkSize: 512 // [optional] defaults to 1024 } var putter = new Putter(options); // put arguments: base64 string, object key, mime type, permissions putter.put(base64data, 'images/success.jpg', 'image/jpeg', 'public-read'); putter.on('progress', function (data) { console.log('progress', data); // progress { percent: 20, written: 768, total: 3728 } }); putter.on('response', function (data) { console.log('response', data); // response { path: 'https://<bucket>.s3.amazonaws.com/images/success.jpg' } }); putter.on('error', function (err) { console.error(err); }); putter.on('close', function () { console.log('closed connection'); });

You could also pass an instance of knox client

var options = { client: yourKnoxClientInstance } var putter = new Putter(options);

Installation

You can install using npm

npm install base64-string-s3

License

ISC

Keywords

FAQs

What is base64-string-s3?

Stream a base64 encoded string directly to aws s3

Is base64-string-s3 popular?

The npm package base64-string-s3 receives a total of 157 weekly downloads. As such, base64-string-s3 popularity was classified as not popular.

Is base64-string-s3 well maintained?

We found that base64-string-s3 demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 28 May 2014
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc