Socket
Socket
Sign inDemoInstall

canvas-aws-prebuilt

Package Overview
Dependencies
26
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    canvas-aws-prebuilt

Adapted version of node-canvas to use with AWS and Serverless


Version published
Maintainers
1
Install size
15.9 MB
Created

Readme

Source

canvas-aws-prebuilt


##Adapted version of node-canvas to use with AWS and Serverless.

Important note: currently this module is using node-canvas v1.6.7. Support of v2 may be added later.

Installation

Download the package:

npm install --save canvas-aws-prebuilt

Serverless

If you're using serverless-webpack, you'll need node-loader to load canvas.node. (Isn't needed if you're also using webpack-node-externals).

Usage

Replace require('canvas') with require('canvas-aws-prebuilt').

API

See node-canvas API.

FAQ

Can I use this in other environments (Windows, MacOS etc.)?

No, you're probably looking for node-canvas-prebuilt.

The Reason

I spent some time (a week, actually) trying to deploy a Serverless application with node-canvas, so I decided to make life easier for those who try to do the same.

Thanks

License

MIT

Keywords

FAQs

Last updated on 27 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc