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

console.draw

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console.draw

Draw `<svg>`, ``, `<canvas>`, VideoFrames, and other graphics to the Dev Tools console.

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by700%
Maintainers
1
Weekly downloads
 
Created
Source

Overview

Draw <svg>, <img>, <canvas>, VideoFrames, and other graphics to the Dev Tools console.

Usage

yarn add console.draw
import { logSVG, logCanvas } from "console.draw";

logSVG(svgElement);
logCanvas(canvasElement);

Contributing

Setup
git clone git@github.com:seflless/console.draw.git
cd console.draw
Watching
yarn dev
# Open the workbench page at http://localhost:5173/
Building
yarn build
Testing

TBD

Publishing to NPM

Do the usual npm version bump then publish.

npm version <major|minor|patch>
git push; git push --tags
npm publish
Test

Using vitest, the test are rerun whenever you change related code.

yarn test
Watch Tests

TODO: Do we need to put in a difference command for the CLI?

Keywords

FAQs

Package last updated on 17 Jan 2023

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