
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
canvas-empty-stub
Advanced tools
A lightweight, empty stub package designed to replace the canvas
dependency when it's not needed in your project.
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.
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
You can replace the usage in the package.json with the following manually:
"dependencies": {
"canvas": "npm:canvas-empty-stub@^1.0.0"
}
FAQs
Empty stub to replace canvas with
The npm package canvas-empty-stub receives a total of 159 weekly downloads. As such, canvas-empty-stub popularity was classified as not popular.
We found that canvas-empty-stub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.