Skip to content

Latest commit

 

History

History
 
 

aws-sharp-ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

faast.js with sharp on AWS

This example demonstrates the use of the packageJson option to work with the sharp package for image manipulation, which can't be bundled by webpack because it has native dependencies.

Prerequisites

  • Node 8+.

  • TypeScript 3.3 or above. Install globally:

    $ npm install -g typescript

Installing dependencies

$ npm install

Building

$ npm run build

Running

$ node dist/index.js

Expected output

wrote output.png

output.png should be the same as expected-output.png, which is this image:

expectedoutput