Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blitline-s3

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blitline-s3

Post Blitline jobs that uploads to s3 and do polling for the jobs.

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

blitline-s3

Post Blitline jobs that uploads to s3 and do polling for the jobs.

Install

npm install --save blitline-s3

Usage

// Require and configure Blitline
var blitline = require('blitline-s3')({
  APPLICATION_ID: 'APP_ID', // Your Blitline Application ID
  BUCKET: 'YourS3Bucket', // Your Amazon S3 Bucket Name
  NAME_PREFIX: 'uploads/' // Prefix for New Images Created By Blitline
});

// Send a job to Blitline
blitline('http://www.source.to/your-image.jpg', [{
    name: 'resize',
    params: {
      width: 10,
      height: 10
    },
    save: 'your-image-resized.jpg' // Shortcut
}, {...}]).then(function(response) {
  console.log(response);
  /*
  {
    jobId: 'blitline_job_id',
    originalMeta: {
      width: 100,
      height: 100
    },
    images: [{
      url: 'http://YourS3Bucket.s3.amazonaws.com/uploads/your-image-resized.jpg',
      meta: {
        width: 10,
        height: 10
      }
    }, {...}]
  }
  */
}, function(error) {
  console.error(error);
});

Keywords

FAQs

Package last updated on 26 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc