"use strict" var vectorizeText = require("../index.js") var polygons = vectorizeText("Hello world! 你好", { polygons: true, width: 500, textBaseline: "top" }) var svg = [] svg.push('') polygons.forEach(function(loops) { svg.push('') }) svg.push('') if(typeof window !== "undefined") { document.body.innerHTML = svg.join("") } else { console.log(svg.join("")) }