This gist is a bit of a hack that lets you generate a d3-celestial svg without a web browser.
git clone https://github.com/ofrohn/d3-celestial.git
npm install jsdom
Finally, add a lib
directory and download require.js
into it from here: https://requirejs.org/docs/download.html
node celestial-headless.js
I know it has been awhile since this is written, but for anyone that drops by, don't for get to install canvas aswell. If you want to run exactly what @jpwsutton has hacked together 😎
Also this is a direct response to the feature request for running D3 Celestial to render SVG in headless mode.
Now there is D3-node but I haven't figured out a proper way to integrate Celestial into this.