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

canvg

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvg - npm Package Compare versions

Comparing version 1.0.0 to 1.5.1

dist/browser/canvg.js

52

package.json
{
"name": "canvg",
"description": "Javascript SVG parser and renderer on Canvas",
"homepage": "https://github.com/gabelerner/canvg",
"homepage": "https://github.com/canvg/canvg",
"keywords": [

@@ -15,23 +15,57 @@ "javascript",

"type": "git",
"url": "git://github.com/gabelerner/canvg.git"
"url": "git://github.com/canvg/canvg.git"
},
"main": "canvg.js",
"version": "1.0.0",
"main": "dist/node/canvg.js",
"types": "dist/node/canvg.d.ts",
"browser": "dist/browser/canvg.min.js",
"version": "1.5.1",
"scripts": {
"test" : "cd test; node testNode.js"
"start": "node test/browser.test.js",
"build": "npm run build-browser && npm run build-node && npm run minify",
"build-browser": "touch src/dummy.js && rollup -c && rm src/dummy.js",
"build-node": "IS_NODE=1 rollup -c",
"test": "ava",
"test-browser": "ava test/browser.test.js --tap | tap-diff",
"test-node": "ava test/node.test.js --tap | tap-diff",
"minify": "npm run minify-browser",
"minify-browser": "uglifyjs --mangle --compress if_return=true -o dist/browser/canvg.min.js dist/browser/canvg.js"
},
"license": "MIT",
"files": [
"canvg.js",
"MIT-LICENSE.txt"
"dist",
"LICENSE",
"README.md",
"package.json"
],
"readmeFilename": "README.md",
"dependencies": {
"jsdom": "^8.1.0",
"rgbcolor": "^1.0.1",
"stackblur": "^1.0.0",
"jsdom": "^8.1.0",
"xmldom": "^0.1.22"
},
"devDependencies": {
"canvas": "^1.4.0"
"ava": "^1.0.0-beta.6",
"ava-is-running": "^1.0.3",
"blink-diff": "^1.0.13",
"bluebird": "^3.5.1",
"canvas": "^1.4.0",
"data-uri-to-buffer": "^2.0.0",
"debug": "^2.6.9",
"mkdirp": "^0.5.1",
"pngjs-image": "^0.11.7",
"puppeteer": "^1.6.2",
"rollup": "^0.63.5",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-commonjs": "^9.1.4",
"rollup-plugin-json": "^3.0.0",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"serve-handler": "^3.6.1",
"tap-diff": "^0.1.1",
"uglify-js": "^3.3.16"
},
"jspm": {
"registry": "npm"
}
}

15

README.md

@@ -0,1 +1,7 @@

[![Build Status](https://travis-ci.com/canvg/canvg.svg?branch=master)](https://travis-ci.com/canvg/canvg)
Looking for Contributors
============
In an attempt to keep this repo more active and merge PRs and do releases, if you would like to be a contributor, please start a conversation with me at gabelerner at gmail. The prerequisite is to have a few PRs open to prove out an understanding of the code. Thanks!
Introduction

@@ -23,6 +29,3 @@ ============

Locally, can use `local-web-server`
Install with `yarn global add local-web-server`
In the root directory, run `ws`
Navigate to `http://localhost:8000/examples/index.htm`
Locally, you can run `npm start` and view the examples at `http://localhost:3123/examples/index.htm`

@@ -33,4 +36,4 @@ Usage

```html
<script type="text/javascript" src="http://canvg.github.io/canvg/rgbcolor.js"></script>
<script type="text/javascript" src="http://canvg.github.io/canvg/StackBlur.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/canvg/1.4/rgbcolor.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/stackblur-canvas/1.4.1/stackblur.min.js"></script>
<script type="text/javascript" src="http://canvg.github.io/canvg/canvg.js"></script>

@@ -37,0 +40,0 @@ ```

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