UNPKG

jsonviz

Version:

A Node.js module that converts JSON to DOT language and can create GraphViz graphics with viz.js (without installing GraphViz)

20 lines (17 loc) 273 B
"use strict"; function Raw (content) { if(this instanceof Raw) { this.content = content || ""; } else { return new Raw(content); } } Raw.prototype.toString = function() { return this.content; }; exports = module.exports = Raw;