🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

canvas-empty-stub

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-empty-stub

Empty stub to replace canvas with

1.0.0
latest
Source
npm
Version published
Maintainers
0
Created
Source

canvas-empty-stub

A lightweight, empty stub package designed to replace the canvas dependency when it's not needed in your project.

Purpose

The canvas-empty-stub package serves as a drop-in replacement for the canvas library in environments where canvas functionality is not used, but it 's required as a peer dependency.

By using this stub, you can avoid problems with building the canvas package and also issues with canvas being required as a peer dependency.

Installation

You can install canvas-empty-stub using npm:

npm install canvas@npm:canvas-empty-stub@^1.0.0

or yarn

yarn add canvas@npm:canvas-empty-stub@^1.0.0

Usage

You can replace the usage in the package.json with the following manually:

"dependencies": {
  "canvas": "npm:canvas-empty-stub@^1.0.0"
}

Keywords

canvas

FAQs

Package last updated on 21 Oct 2024

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