d3-multi-context
A simple wrapper so you can pass multiple contexts to functions which use the d3-path API.
var svgCtx = d3;var hpglCtx = d3Hpgl;var path = path;path;path; path// ["M150,50L200,100M100,50", "PU150,50;\nPD;\nPA200,100;\nPU100,50;\nPD;\n"]