Comparing version 0.0.1 to 0.0.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99796
135