Socket
Socket
Sign inDemoInstall

canvg

Package Overview
Dependencies
78
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.2 to 1.5.3

7

package.json

@@ -20,5 +20,5 @@ {

"browser": "dist/browser/canvg.min.js",
"version": "1.5.2",
"version": "1.5.3",
"scripts": {
"start": "node test/browser.test.js",
"start": "node test/_server.js",
"build": "npm run build-browser && npm run build-node && npm run minify",

@@ -30,2 +30,3 @@ "build-browser": "touch src/dummy.js && rollup -c && rm src/dummy.js",

"test-node": "ava test/node.test.js --tap | tap-diff",
"generate-expected": "node test/_generate_expected_node.js",
"minify": "npm run minify-browser",

@@ -53,3 +54,3 @@ "minify-browser": "uglifyjs --mangle --compress if_return=true -o dist/browser/canvg.min.js dist/browser/canvg.js"

"bluebird": "^3.5.1",
"canvas": "^1.4.0",
"canvas": "^1.6.11",
"data-uri-to-buffer": "^2.0.0",

@@ -56,0 +57,0 @@ "debug": "^2.6.9",

[![Build Status](https://travis-ci.com/canvg/canvg.svg?branch=master)](https://travis-ci.com/canvg/canvg)
[![npm](https://img.shields.io/npm/dm/canvg.svg)](https://www.npmjs.com/package/canvg)
[![](https://data.jsdelivr.com/v1/package/npm/canvg/badge?style=rounded)](https://www.jsdelivr.com/package/npm/canvg)
Looking for Contributors

@@ -24,2 +27,4 @@ ============

=====================
[hosted](http://canvg.github.io/canvg/examples/index.htm)
[jsfiddle playground](http://jsfiddle.net/6r2jug6o/2590/)

@@ -29,2 +34,12 @@

Building
========
`npm run build` then look in the `dist` folder
Testing
=======
`npm run test`
`npm run generate-expected foo.svg` to create the expected png for a given svg in the `svgs` folder
Usage on the server

@@ -82,3 +97,3 @@ ===================

You can call canvg without parameters to replace all svg images on a page. See the
example by running `npm start` and going to [http://localhost:3123/examples/convert.htm](http://localhost:3123/examples/convert.htm).
[example](http://canvg.github.io/canvg/examples/convert.htm).

@@ -85,0 +100,0 @@ There is also a built in extension method to the canvas context to draw svgs similar to the way [drawImage](http://www.w3.org/TR/2dcontext/#dom-context-2d-drawimage) works:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc