🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

d3node-output

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3node-output

simple way to export d3-node instance to png,jpg,svg & html files

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

D3Node-output

Used in examples to export a d3node instance to html, svg, & png files

Install

npm install d3node-output

Usage

const output = require('d3node-output')
const voronoi = require('d3node-voronoi');
const data = new Array(99);

// crop your png to a custom size
// defaults to the size of your svg if not defined
const options = {width: 100, height: 200};

// output files to /dist dir
output('./dist/myVoronoi', voronoi(data), options, callback);

PaaS usage:

  • Heroku: set buildpack to: https://github.com/mikeraimondi/heroku-buildpack-google-chrome
  • AWS Lambda: tbd
  • Azure functions: tbd

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

LICENSE

MIT © d3-node

FAQs

Package last updated on 07 May 2019

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