Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

canvas-prebuilt

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-prebuilt

Prebuilt versions of node-canvas as a drop-in replacement

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM version

This is a drop-in replacement for canvas that does not require any compiling. To use it just npm install canvas-prebuilt or replace canvas with canvas-prebuilt in your dependencies.

The repo is just a set of scripts that downloads a specific node-canvas version, builds it and bundles it on all platforms. It's meant to run on Travis and AppVeyor but it can be run locally too

Releases

Make sure your node version is the most recent to guarantee ABI compatibility

canvas@1.4.0node 6node 5node 4node 0.12node 0.10
Linux x64โœ“โœ“โœ“โœ“โœ“
Windows x64โœ“โœ“โœ“โœ“โœ“
OSX x64โœ“โœ“โœ“โœ“โœ“
Windows x86๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน
Linux x86๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน
Linux ARM๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน๐„‚ยน

ยนI have some ideas on how to get these working with cross-compilation if people request it. I plan to add Linux/ARM

Bundling

The bundling scripts just take a regularly compiled executable (canvas.node in this case) and look at which shared libraries it links against. Those libraries are then copied to the release directory. Windows will look for DLLs in the same directory by default, OSX hard-codes the path to the dylib in executables so you have to recursively update references after the copy, and in Linux you simply have to compile canvas.node in such a way that it will look in the current directory first (using the rpath linker option).

Keywords

FAQs

Package last updated on 11 Sep 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc