Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Take a snapshot and send it to s3. (OSx only)
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
node_modules
.gitignore
.npmignore
LICENSE
README.md
USAGE
package.json

README.md

Only for OS X.

Capture Screenshot and send it to Amazon S3.

Install

Install with npm as follows:

npm i -g s2s3

Install with brew as follows:

brew tap jfromaniello/brew
brew install s2s3

Then you need to create a ~/.s2s3.config file with something like this:

{
    "ACCESS_KEY_ID":     "MY-ACCESS-KEY",
    "ACCESS_KEY_SECRET": "MY-KEY-SECRET",
    "BUCKET":            "THE-BUCKET",
    "COPY_FORMAT":       "![{filekey}](http://THE-BUCKET.amazonaws.com/{filekey})",
    "PREVIEW_BEFORE_UPLOAD": true,
    "DIRECTORY":         "screenshots" //optional base key for the objets in s3.
}

ACCESS KEY, SECRET and BUCKET are the Amazon S3 parameters, COPY_FORMAT is a mask of what is going to by write to your clipboard after finished.

PREVIEW_BEFORE_UPLOAD (defaults to false) shows OSx preview application before uploading, this allows you to draw arrows and rectangles.

Usage

From terminal:

$ s2s3

Grab the area of the screen you want to capture and you will get a link copied to your clipboard.

Create a global key shortcut to /usr/local/bin/s2s3 as described here:

apple.stackexchange.com: Create global shortcut to run command line applications

License

MIT - 2013 - José F. Romaniello

Something went wrong with that request. Please try again.