Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 617 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 617 Bytes

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+.

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