UNPKG

postsvg

Version:

A tiny wrapper over posthml with the same API optimized for working with SVG

23 lines (18 loc) 296 B
class PostSvgResult { /** * @param {PostSvgTree} tree */ constructor(tree) { this.tree = tree; } get html() { return this.toString(); } get svg() { return this.toString(); } toString() { return this.tree.toString(); } } module.exports = PostSvgResult;