Socket
Socket
Sign inDemoInstall

papercut

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

papercut - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "papercut",
"version": "0.0.1",
"version": "0.0.2",
"description": "Papercut is a node package to handle image upload, resize and sync with Amazon s3",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,6 +7,12 @@ # PAPERCUT!

+ envionment configuration
+ environment configuration
+ node-imagemagick integration for image resize, crop and copy.
+ S3 image upload
## Install
In terminal:
npm install papercut --save
## Usage

@@ -23,3 +29,3 @@

papercut.configure('production', function(){
papercut.set('storage', 'S3')
papercut.set('storage', 's3')
papercut.set('S3_KEY', process.env.S3_KEY)

@@ -47,5 +53,5 @@ papercut.set('S3_SECRET', process.env.S3_SECRET)

uploader.process('image1.png', file.path, function(images){
console.log(images.avatar); // 'http://s3.amazon.com/papercut/image1-avatar.png'
console.log(images.small); // 'http://s3.amazon.com/papercut/image1-small.png'
uploader.process('image1', file.path, function(images){
console.log(images.avatar); // '/images/uploads/image1-avatar.jpg'
console.log(images.small); // '/images/uploads/image1-small.jpg'
})

@@ -52,0 +58,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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