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

d3-svg-to-png

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-svg-to-png - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

typing.d.ts

3

package.json
{
"name": "d3-svg-to-png",
"version": "0.1.4",
"version": "0.1.5",
"description": "Converts SVG elements to PNG and other image formats while keeping CSS styles",

@@ -9,2 +9,3 @@ "main": "index.js",

},
"types": "typing.d.ts",
"keywords": [

@@ -11,0 +12,0 @@ "svg",

@@ -29,3 +29,9 @@ #d3-svg-to-png

const d3ToPng = require('d3-svg-to-png');
d3ToPng('svg', 'name', { scale: 3, format: 'webp', quality: 0.01, download: false, ignore: '.ignored' }).then(fileData => {
d3ToPng('svg', 'name', {
scale: 3,
format: 'webp',
quality: 0.01,
download: false,
ignore: '.ignored'
}).then(fileData => {
//do something with the data

@@ -47,2 +53,6 @@ });

## Contribution
Please make your changes to the **dev** branch, so that automated tests can be run before merging to **master**. Also, if possible, provide tests for new functionality.
## TODO

@@ -56,1 +66,6 @@

If you liked this you might like some of my [app prototyping](https://prototyping.barcelona).
## Acknowledgements/credits
- [Juan Irache](https://github.com/JuanIrache) - Main developer
- [Thành Trang](https://github.com/trangcongthanh) - Contributor
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