Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 10, 2024 via pnpm

canvas 2.11.2

Canvas graphics API backed by Cairo
Package summary
Share
1
issue
1
high severity
meta
1
5
licenses
31
MIT
28
ISC
1
BSD-3-Clause
2
other licenses
Apache-2.0
1
BSD-2-Clause
1
Package created
19 Dec 2010
Version published
2 Apr 2023
Maintainers
8
Total deps
62
Direct deps
3
License
MIT

Issues

1

1 high severity issue

high
via: canvas@2.11.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
31 Packages, Including:
agent-base@6.0.2
ansi-regex@5.0.1
balanced-match@1.0.2
brace-expansion@1.1.11
canvas@2.11.2
concat-map@0.0.1
debug@4.3.4
decompress-response@4.2.1
delegates@1.0.0
emoji-regex@8.0.0
https-proxy-agent@5.0.1
is-fullwidth-code-point@3.0.0
make-dir@3.1.0
mimic-response@2.1.0
minizlib@2.1.2
mkdirp@1.0.4
ms@2.1.2
nan@2.19.0
node-fetch@2.7.0
object-assign@4.1.1
path-is-absolute@1.0.1
readable-stream@3.6.2
safe-buffer@5.2.1
simple-concat@1.0.1
simple-get@3.1.1
string-width@4.2.3
string_decoder@1.3.0
strip-ansi@6.0.1
tr46@0.0.3
util-deprecate@1.0.2
whatwg-url@5.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
28 Packages, Including:
abbrev@1.1.1
aproba@2.0.0
are-we-there-yet@2.0.0
chownr@2.0.0
color-support@1.1.3
console-control-strings@1.1.0
fs-minipass@2.1.0
fs.realpath@1.0.0
gauge@3.0.2
glob@7.2.3
has-unicode@2.0.1
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
minipass@3.3.6
minipass@5.0.0
nopt@5.0.0
npmlog@5.0.1
once@1.4.0
rimraf@3.0.2
semver@6.3.1
semver@7.6.2
set-blocking@2.0.0
signal-exit@3.0.7
tar@6.2.1
wide-align@1.1.5
wrappy@1.0.2
yallist@4.0.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
@mapbox/node-pre-gyp@1.0.11

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
detect-libc@2.0.3

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
webidl-conversions@3.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of canvas 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@mapbox/node-pre-gyp1.0.111 BBSD-3-Clause
prod
nan2.19.0419.43 kBMIT
prod
simple-get3.1.14.88 kBMIT
prod

Visualizations

Frequently Asked Questions

What does canvas do?

Node-canvas is a Cairo graphics library-backed canvas implementation for Node.js. It allows users to create programmatically controlled images in web servers and Node.js programs. It can create all type of graphics like lines, text, images including their properties like colors, shape, and style, etc.

How do you use canvas?

To use canvas, Installation is accomplished via npm like so:

$ npm install canvas

You can then require the canvas module and begin creating graphics. Here is a quick example:

const { createCanvas, loadImage } = require('canvas')
const canvas = createCanvas(200, 200)
const ctx = canvas.getContext('2d')

ctx.font = '30px Impact'
ctx.rotate(0.1)
ctx.fillText('Awesome!', 50, 100)

var text = ctx.measureText('Awesome!')
ctx.strokeStyle = 'rgba(0,0,0,0.5)'
ctx.beginPath()
ctx.lineTo(50, 102)
ctx.lineTo(50 + text.width, 102)
ctx.stroke()

loadImage('examples/images/lime-cat.jpg').then((image) => {
  ctx.drawImage(image, 50, 0, 70, 70)

  console.log('<img src="' + canvas.toDataURL() + '" />')
})

Where are the canvas docs?

The canvas package documentation can be found on the Mozilla Web Canvas API link provided in the Readme and the Compatibility Status page for the current API compliance. All utility methods and non-standard APIs are documented in the Readme itself. For more detailed utilization and instructions, please refer to the wiki of the Github repository.