Socket
Socket
Sign inDemoInstall

svg-text-to-vector

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

2

dist/path.js

@@ -1,1 +0,1 @@

const _0x41dc16=_0x2a33;(function(_0x32bd8f,_0x4f8af7){const _0x5be949=_0x2a33,_0x2d8d6e=_0x32bd8f();while(!![]){try{const _0x3d2791=parseInt(_0x5be949(0xca))/0x1+-parseInt(_0x5be949(0xd9))/0x2+-parseInt(_0x5be949(0xad))/0x3*(-parseInt(_0x5be949(0xd8))/0x4)+-parseInt(_0x5be949(0xdb))/0x5*(parseInt(_0x5be949(0xd4))/0x6)+parseInt(_0x5be949(0xcc))/0x7*(-parseInt(_0x5be949(0xaf))/0x8)+-parseInt(_0x5be949(0xc0))/0x9+parseInt(_0x5be949(0xd6))/0xa*(parseInt(_0x5be949(0xa0))/0xb);if(_0x3d2791===_0x4f8af7)break;else _0x2d8d6e['push'](_0x2d8d6e['shift']());}catch(_0x1a6df0){_0x2d8d6e['push'](_0x2d8d6e['shift']());}}}(_0x1642,0x47d86));const opentype=require(_0x41dc16(0xa6)),fs=require('fs'),fontConfigPath=require[_0x41dc16(0xbd)](_0x41dc16(0xb2));function _0x1642(){const _0x8822db=['resolve','includes','buffer','2654613LQRrbC','toString','font-family','readFileSync','(?:[A-Za-z0-9+\x5c/]{4})*(?:[A-Za-z0-9+\x5c/]{2}==|[A-Za-z0-9+/]{3}=)?','<text\x20','base64','line','fill','utf-8','461103CIxZXN','save','248444MsoWuT','x=\x22','font','name','<path\x20','svgToPath','utf8','replace','2346EOMCRo','match','1347110JoPfah','</text','228168zTJJUQ','1043320tvawrW','getPath','945hKOMSu','path','<text','<tspan\x20','77KpJPQD','d=\x22','all','split','trim','keys','opentype.js','font-size=\x22','writeFileSync','y=\x22','forEach','length','size','9gmsYRH','test','88vqXtRw','pop','loadSync','svg-text-to-vector/config/fonts.json','parse','toPathData','<tspan','</tspan>','fontPath','map','Times\x20New\x20Roman','toLowerCase','from','load'];_0x1642=function(){return _0x8822db;};return _0x1642();}var defaultFont=_0x41dc16(0xb9),defaultFontPath=require[_0x41dc16(0xbd)]('svg-text-to-vector/config/fonts/times.ttf'),defaultFontSize=0x10,regex_base64=_0x41dc16(0xc4),regex_svg=/(<svg)([^<]*|[^>]*)/g;function _0x2a33(_0x577947,_0x48e39a){const _0x164219=_0x1642();return _0x2a33=function(_0x2a33b2,_0x2f92b0){_0x2a33b2=_0x2a33b2-0x9f;let _0x938a8b=_0x164219[_0x2a33b2];return _0x938a8b;},_0x2a33(_0x577947,_0x48e39a);}exports[_0x41dc16(0xd1)]=async function(_0x421feb){const _0x393f53=_0x41dc16;var _0x13e6cc;if(Buffer['isBuffer'](_0x421feb[_0x393f53(0xbc)])==!![])_0x13e6cc=_0x421feb['load']['toString'](_0x393f53(0xd2));else{if(new RegExp('^'+regex_base64+'$','gi')['test'](_0x421feb[_0x393f53(0xbc)])==!![])_0x13e6cc=Buffer[_0x393f53(0xbb)](_0x421feb[_0x393f53(0xbc)],_0x393f53(0xc6))[_0x393f53(0xc1)](_0x393f53(0xd2));else{if(new RegExp(regex_svg)[_0x393f53(0xae)](_0x421feb['load'])==!![])_0x13e6cc=_0x421feb['load'];else _0x13e6cc=fs[_0x393f53(0xc3)](_0x421feb[_0x393f53(0xbc)],'utf8');}}_0x421feb[_0x393f53(0xce)]&&_0x421feb[_0x393f53(0xb7)]&&(_0x421feb[_0x393f53(0xce)]['trim']()!=''&&_0x421feb[_0x393f53(0xb7)]['trim']()!=''&&(defaultFont=_0x421feb[_0x393f53(0xce)],defaultFontPath=_0x421feb[_0x393f53(0xb7)]));_0x421feb['fontSize']&&(_0x421feb['fontSize'][_0x393f53(0xc1)]()[_0x393f53(0xa4)]()!=''&&(defaultFontSize=_0x421feb['fontSize']));var _0x31c97b=(_0x13e6cc[_0x393f53(0xd5)](/<text/g)||[])[_0x393f53(0xab)];Array['from']({'length':_0x31c97b})[_0x393f53(0xaa)]((_0x5d6774,_0x4c6aeb)=>{const _0x2285ca=_0x393f53;_0x13e6cc=_0x13e6cc['replace'](_0x2285ca(0xc5),_0x2285ca(0xdd)+_0x4c6aeb+'\x20'),_0x13e6cc=_0x13e6cc['replace']('</text>',_0x2285ca(0xd7)+_0x4c6aeb+'>');});const _0x34e96b=Array(_0x31c97b)[_0x393f53(0xc8)]()[_0x393f53(0xb8)](async(_0x200c8c,_0xa60521)=>{const _0x34e020=_0x393f53;let _0x3b397d=_0x13e6cc['split']('<text'+_0xa60521+'')[_0x34e020(0xb0)]()[_0x34e020(0xa3)](_0x34e020(0xd7)+_0xa60521+'>')[0x0][_0x34e020(0xa4)](),_0x376fa1,_0x45e637,_0x1da474,_0x1c415b,_0x58210a;if(_0x3b397d[_0x34e020(0xbe)](_0x34e020(0xc2)))_0x1c415b=_0x3b397d[_0x34e020(0xa3)]('font-family=\x22')[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('\x22')[0x0];if(_0x3b397d[_0x34e020(0xbe)]('font-size'))_0x58210a=_0x3b397d[_0x34e020(0xa3)](_0x34e020(0xa7))[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('\x22')[0x0];else _0x58210a=defaultFontSize;if(!_0x3b397d[_0x34e020(0xbe)]('<tspan'))_0x376fa1=_0x3b397d[_0x34e020(0xa3)]('>')[0x1][_0x34e020(0xa4)](),_0x45e637=_0x3b397d[_0x34e020(0xa3)]('x=\x22')['pop']()[_0x34e020(0xa3)]('\x22')[0x0],_0x1da474=_0x3b397d['split'](_0x34e020(0xa9))[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('\x22')[0x0];else{_0x376fa1=_0x3b397d[_0x34e020(0xa3)](_0x34e020(0x9f))[_0x34e020(0xb0)]()[_0x34e020(0xa3)](_0x34e020(0xb6))[0x0],_0x376fa1=_0x376fa1[_0x34e020(0xa3)]('>')[0x1],_0x45e637=_0x3b397d[_0x34e020(0xa3)](_0x34e020(0xcd))[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('\x22')[0x0],_0x1da474=_0x3b397d[_0x34e020(0xa3)](_0x34e020(0xa9))[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('\x22')[0x0];let _0x3dd8d5=_0x3b397d[_0x34e020(0xa3)](_0x34e020(0xb5))[_0x34e020(0xb0)]()[_0x34e020(0xa3)]('>')[0x0];_0x3b397d=_0x3b397d['replace'](_0x34e020(0xb5)+_0x3dd8d5+'>',''),_0x3b397d=_0x3b397d[_0x34e020(0xd3)](_0x34e020(0xb6),''),_0x13e6cc=_0x13e6cc[_0x34e020(0xd3)](_0x34e020(0xb5)+_0x3dd8d5+'>',''),_0x13e6cc=_0x13e6cc[_0x34e020(0xd3)](_0x34e020(0xb6),'');}try{_0x376fa1=_0x376fa1[_0x34e020(0xa4)](),_0x376fa1=_0x376fa1['replace'](/amp;/g,'')[_0x34e020(0xd3)](/&lt;/g,'<')['replace'](/&gt;/g,'>')[_0x34e020(0xd3)](/&quot;/g,'\x22')[_0x34e020(0xd3)](/&#39;/g,'\x27')[_0x34e020(0xd3)](/&amp;/g,'&')[_0x34e020(0xd3)](/&apos;/g,'\x27');}catch(_0x3d222a){}let _0x366d75=/font-family="(.+?)"|font-size="(.+?)"|font-weight="(.+?)"/g;_0x3b397d[_0x34e020(0xd5)](_0x366d75)?_0x3b397d=_0x3b397d['replace'](_0x366d75,''):null;var _0x5bc7bd;_0x5bc7bd=_0x1c415b?await fetchFont(_0x1c415b):null;!_0x5bc7bd&&(_0x1c415b=defaultFont,_0x5bc7bd=defaultFontPath);const _0x1b6ed5={'line':_0x376fa1,'x':_0x45e637,'y':_0x1da474,'font':_0x5bc7bd,'size':_0x58210a},_0x3c7a3f=await toPath(_0x1b6ed5);_0x3b397d=_0x3b397d[_0x34e020(0xa4)]()[_0x34e020(0xd3)](_0x376fa1,''),_0x3b397d=_0x34e020(0xa1)+_0x3c7a3f+'\x22\x20'+_0x3b397d;const _0x5dffca=_0x13e6cc[_0x34e020(0xa3)](_0x34e020(0xdd)+_0xa60521+'')['pop']()[_0x34e020(0xa3)](_0x34e020(0xd7)+_0xa60521+'>')[0x0]['trim']();_0x13e6cc=_0x13e6cc[_0x34e020(0xd3)]('<text'+_0xa60521+'\x20'+_0x5dffca,_0x34e020(0xd0)+_0x3b397d)['replace'](_0x34e020(0xd7)+_0xa60521+'>','</path>');return;});await Promise[_0x393f53(0xa2)](_0x34e96b);if(_0x421feb[_0x393f53(0xcb)]['toLowerCase']()==_0x393f53(0xbf))return Buffer[_0x393f53(0xbb)](_0x13e6cc,'utf8');else{if(_0x421feb[_0x393f53(0xcb)][_0x393f53(0xba)]()=='base64')return new Buffer['from'](_0x13e6cc)[_0x393f53(0xc1)](_0x393f53(0xc6));else return _0x421feb[_0x393f53(0xcb)][_0x393f53(0xba)]()==_0x393f53(0xc9)||_0x421feb[_0x393f53(0xcb)][_0x393f53(0xba)]()==_0x393f53(0xd2)?_0x13e6cc:(fs[_0x393f53(0xa8)](_0x421feb[_0x393f53(0xcb)],_0x13e6cc),_0x13e6cc);}};async function toPath(_0x385838){const _0x40a033=_0x41dc16,_0x28b7d5={'kerning':!![]},_0x2ff0aa=opentype[_0x40a033(0xb1)](_0x385838[_0x40a033(0xce)]),_0x3d4813=_0x2ff0aa[_0x40a033(0xda)](_0x385838[_0x40a033(0xc7)],Number(_0x385838['x']),Number(_0x385838['y']),Number(_0x385838[_0x40a033(0xac)]),_0x28b7d5),_0x1dd93a=_0x3d4813[_0x40a033(0xb4)](0x2);return _0x1dd93a;}async function fetchFont(_0x4556d6){const _0x479a79=_0x41dc16,_0x19129d=require['resolve'](_0x479a79(0xb2)),_0x2f92cd=JSON[_0x479a79(0xb3)](fs[_0x479a79(0xc3)](_0x19129d));let _0x4ec2d5=![];var _0x19ae72;return Object[_0x479a79(0xa5)](_0x2f92cd[_0x479a79(0xce)])[_0x479a79(0xaa)](_0x3da9bc=>{const _0x5422c3=_0x479a79;!_0x4ec2d5&&(_0x2f92cd['font'][_0x3da9bc][_0x5422c3(0xcf)]==_0x4556d6[_0x5422c3(0xa4)]()&&(_0x19ae72=_0x2f92cd['font'][_0x3da9bc][_0x5422c3(0xdc)],_0x4ec2d5=!![]));}),_0x19ae72;}
const _0x2137e4=_0xdf78;(function(_0xa4ffd7,_0x4ad2f6){const _0x40c062=_0xdf78,_0x4e65d2=_0xa4ffd7();while(!![]){try{const _0x30f7cd=parseInt(_0x40c062(0x1a2))/0x1+parseInt(_0x40c062(0x1c1))/0x2+-parseInt(_0x40c062(0x1a3))/0x3*(parseInt(_0x40c062(0x1d9))/0x4)+-parseInt(_0x40c062(0x1c6))/0x5*(parseInt(_0x40c062(0x1cf))/0x6)+parseInt(_0x40c062(0x1a5))/0x7+parseInt(_0x40c062(0x1a8))/0x8+-parseInt(_0x40c062(0x1b7))/0x9;if(_0x30f7cd===_0x4ad2f6)break;else _0x4e65d2['push'](_0x4e65d2['shift']());}catch(_0xd97a26){_0x4e65d2['push'](_0x4e65d2['shift']());}}}(_0x1e40,0x46a98));const opentype=require(_0x2137e4(0x1ca)),fs=require('fs'),fontConfigPath=require['resolve'](_0x2137e4(0x1dc));function _0x1e40(){const _0x44d91c=['y=\x22','</text','path','fontSize','replace','test','all','utf-8','save','221238PYtCVb','forEach','toPathData','svgToPath','<path\x20','55iSnTIp','loadSync','toString','readFileSync','opentype.js','load','<text','resolve','(?:[A-Za-z0-9+\x5c/]{4})*(?:[A-Za-z0-9+\x5c/]{2}==|[A-Za-z0-9+/]{3}=)?','252660mckSVH','</text>','fontPath','Times\x20New\x20Roman','toLowerCase','size','length','includes','buffer','font-family=\x22','1228CHReOp','line','split','svg-text-to-vector/config/fonts.json','trim','svg-text-to-vector/config/fonts/times.ttf','<tspan\x20','226057nDAHIp','1497cTIEEP','utf8','3513930ZmotQc','from','font-size','2072920lgCFvD','</path>','</tspan>','name','keys','d=\x22','base64','writeFileSync','pop','font','map','parse','getPath','<tspan','match','1727514OhpTkE'];_0x1e40=function(){return _0x44d91c;};return _0x1e40();}var defaultFont=_0x2137e4(0x1d2),defaultFontPath=require[_0x2137e4(0x1cd)](_0x2137e4(0x1de)),defaultFontSize=0x10,regex_base64=_0x2137e4(0x1ce),regex_svg=/(<svg)([^<]*|[^>]*)/g;exports[_0x2137e4(0x1c4)]=async function(_0x19e3f0){const _0x1185eb=_0x2137e4;var _0x1f193b;if(Buffer['isBuffer'](_0x19e3f0[_0x1185eb(0x1cb)])==!![])_0x1f193b=_0x19e3f0[_0x1185eb(0x1cb)]['toString'](_0x1185eb(0x1a4));else{if(new RegExp('^'+regex_base64+'$','gi')[_0x1185eb(0x1bd)](_0x19e3f0['load'])==!![])_0x1f193b=Buffer[_0x1185eb(0x1a6)](_0x19e3f0['load'],_0x1185eb(0x1ae))[_0x1185eb(0x1c8)](_0x1185eb(0x1a4));else{if(new RegExp(regex_svg)[_0x1185eb(0x1bd)](_0x19e3f0[_0x1185eb(0x1cb)])==!![])_0x1f193b=_0x19e3f0[_0x1185eb(0x1cb)];else _0x1f193b=fs[_0x1185eb(0x1c9)](_0x19e3f0[_0x1185eb(0x1cb)],_0x1185eb(0x1a4));}}_0x19e3f0[_0x1185eb(0x1b1)]&&_0x19e3f0[_0x1185eb(0x1d1)]&&(_0x19e3f0['font']['trim']()!=''&&_0x19e3f0[_0x1185eb(0x1d1)][_0x1185eb(0x1dd)]()!=''&&(defaultFont=_0x19e3f0[_0x1185eb(0x1b1)],defaultFontPath=_0x19e3f0['fontPath']));_0x19e3f0[_0x1185eb(0x1bb)]&&(_0x19e3f0[_0x1185eb(0x1bb)]['toString']()[_0x1185eb(0x1dd)]()!=''&&(defaultFontSize=_0x19e3f0[_0x1185eb(0x1bb)]));var _0x532c2e=(_0x1f193b['match'](/<text/g)||[])[_0x1185eb(0x1d5)];Array[_0x1185eb(0x1a6)]({'length':_0x532c2e})[_0x1185eb(0x1c2)]((_0x58bdc2,_0x255fd6)=>{const _0x24ff13=_0x1185eb;_0x1f193b=_0x1f193b['replace']('<text\x20',_0x24ff13(0x1cc)+_0x255fd6+'\x20'),_0x1f193b=_0x1f193b[_0x24ff13(0x1bc)](_0x24ff13(0x1d0),_0x24ff13(0x1b9)+_0x255fd6+'>');});const _0x568744=Array(_0x532c2e)['fill']()[_0x1185eb(0x1b2)](async(_0x3dde6a,_0x5160c3)=>{const _0x319957=_0x1185eb;let _0x289696=_0x1f193b[_0x319957(0x1db)]('<text'+_0x5160c3+'')[_0x319957(0x1b0)]()[_0x319957(0x1db)](_0x319957(0x1b9)+_0x5160c3+'>')[0x0][_0x319957(0x1dd)](),_0x420c18,_0x593926,_0x226682,_0x655716,_0x1b8622;if(_0x289696[_0x319957(0x1d6)]('font-family'))_0x655716=_0x289696[_0x319957(0x1db)](_0x319957(0x1d8))[_0x319957(0x1b0)]()[_0x319957(0x1db)]('\x22')[0x0];if(_0x289696['includes'](_0x319957(0x1a7)))_0x1b8622=_0x289696[_0x319957(0x1db)]('font-size=\x22')[_0x319957(0x1b0)]()['split']('\x22')[0x0];else _0x1b8622=defaultFontSize;if(!_0x289696[_0x319957(0x1d6)](_0x319957(0x1b5)))_0x420c18=_0x289696[_0x319957(0x1db)]('>')[0x1][_0x319957(0x1dd)](),_0x593926=_0x289696[_0x319957(0x1db)]('x=\x22')['pop']()[_0x319957(0x1db)]('\x22')[0x0],_0x226682=_0x289696[_0x319957(0x1db)](_0x319957(0x1b8))[_0x319957(0x1b0)]()[_0x319957(0x1db)]('\x22')[0x0];else{_0x420c18=_0x289696[_0x319957(0x1db)](_0x319957(0x1a1))[_0x319957(0x1b0)]()['split'](_0x319957(0x1aa))[0x0],_0x420c18=_0x420c18[_0x319957(0x1db)]('>')[0x1],_0x593926=_0x289696[_0x319957(0x1db)]('x=\x22')['pop']()['split']('\x22')[0x0],_0x226682=_0x289696[_0x319957(0x1db)](_0x319957(0x1b8))[_0x319957(0x1b0)]()[_0x319957(0x1db)]('\x22')[0x0];let _0x3b0286=_0x289696['split'](_0x319957(0x1b5))[_0x319957(0x1b0)]()[_0x319957(0x1db)]('>')[0x0];_0x289696=_0x289696[_0x319957(0x1bc)](_0x319957(0x1b5)+_0x3b0286+'>',''),_0x289696=_0x289696[_0x319957(0x1bc)](_0x319957(0x1aa),''),_0x1f193b=_0x1f193b['replace'](_0x319957(0x1b5)+_0x3b0286+'>',''),_0x1f193b=_0x1f193b['replace'](_0x319957(0x1aa),'');}try{_0x420c18=_0x420c18[_0x319957(0x1dd)](),_0x420c18=_0x420c18[_0x319957(0x1bc)](/amp;/g,'')[_0x319957(0x1bc)](/&lt;/g,'<')[_0x319957(0x1bc)](/&gt;/g,'>')[_0x319957(0x1bc)](/&quot;/g,'\x22')[_0x319957(0x1bc)](/&#39;/g,'\x27')[_0x319957(0x1bc)](/&amp;/g,'&')[_0x319957(0x1bc)](/&apos;/g,'\x27');}catch(_0xeb1379){}let _0x530c8d=/font-family="(.+?)"|font-size="(.+?)"|font-weight="(.+?)"/g;_0x289696[_0x319957(0x1b6)](_0x530c8d)?_0x289696=_0x289696['replace'](_0x530c8d,''):null;var _0x5de210;_0x5de210=_0x655716?await fetchFont(_0x655716):null;!_0x5de210&&(_0x655716=defaultFont,_0x5de210=defaultFontPath);const _0x1c1833={'line':_0x420c18,'x':_0x593926,'y':_0x226682,'font':_0x5de210,'size':_0x1b8622},_0x288107=await toPath(_0x1c1833);_0x289696=_0x289696[_0x319957(0x1dd)]()['replace'](_0x420c18,''),_0x289696=_0x319957(0x1ad)+_0x288107+'\x22\x20'+_0x289696;const _0x4f91a9=_0x1f193b[_0x319957(0x1db)](_0x319957(0x1cc)+_0x5160c3+'')[_0x319957(0x1b0)]()[_0x319957(0x1db)](_0x319957(0x1b9)+_0x5160c3+'>')[0x0][_0x319957(0x1dd)]();_0x1f193b=_0x1f193b[_0x319957(0x1bc)](_0x319957(0x1cc)+_0x5160c3+'\x20'+_0x4f91a9,_0x319957(0x1c5)+_0x289696)['replace'](_0x319957(0x1b9)+_0x5160c3+'>',_0x319957(0x1a9));return;});await Promise[_0x1185eb(0x1be)](_0x568744);if(_0x19e3f0[_0x1185eb(0x1c0)][_0x1185eb(0x1d3)]()==_0x1185eb(0x1d7))return Buffer['from'](_0x1f193b,'utf8');else{if(_0x19e3f0['save'][_0x1185eb(0x1d3)]()==_0x1185eb(0x1ae))return new Buffer[(_0x1185eb(0x1a6))](_0x1f193b)[_0x1185eb(0x1c8)](_0x1185eb(0x1ae));else{if(_0x19e3f0[_0x1185eb(0x1c0)]['toLowerCase']()==_0x1185eb(0x1bf)||_0x19e3f0[_0x1185eb(0x1c0)][_0x1185eb(0x1d3)]()==_0x1185eb(0x1a4))return _0x1f193b;else{fs[_0x1185eb(0x1af)](_0x19e3f0['save'],_0x1f193b);return;}}}};function _0xdf78(_0x31230d,_0x3ccb7b){const _0x1e4025=_0x1e40();return _0xdf78=function(_0xdf7869,_0x53dc1f){_0xdf7869=_0xdf7869-0x1a1;let _0x4cb392=_0x1e4025[_0xdf7869];return _0x4cb392;},_0xdf78(_0x31230d,_0x3ccb7b);}async function toPath(_0x3d5682){const _0x229b8b=_0x2137e4,_0x262053={'kerning':!![]},_0x26c891=opentype[_0x229b8b(0x1c7)](_0x3d5682[_0x229b8b(0x1b1)]),_0x18b75f=_0x26c891[_0x229b8b(0x1b4)](_0x3d5682[_0x229b8b(0x1da)],Number(_0x3d5682['x']),Number(_0x3d5682['y']),Number(_0x3d5682[_0x229b8b(0x1d4)]),_0x262053),_0x42beed=_0x18b75f[_0x229b8b(0x1c3)](0x2);return _0x42beed;}async function fetchFont(_0x5df401){const _0x18dc7e=_0x2137e4,_0x1e47d3=require[_0x18dc7e(0x1cd)]('svg-text-to-vector/config/fonts.json'),_0x22fd0c=JSON[_0x18dc7e(0x1b3)](fs[_0x18dc7e(0x1c9)](_0x1e47d3));let _0x4cb5c0=![];var _0x5105bf;return Object[_0x18dc7e(0x1ac)](_0x22fd0c['font'])[_0x18dc7e(0x1c2)](_0x5127c7=>{const _0xd20c2e=_0x18dc7e;!_0x4cb5c0&&(_0x22fd0c['font'][_0x5127c7][_0xd20c2e(0x1ab)]==_0x5df401['trim']()&&(_0x5105bf=_0x22fd0c[_0xd20c2e(0x1b1)][_0x5127c7][_0xd20c2e(0x1ba)],_0x4cb5c0=!![]));}),_0x5105bf;}
{
"name": "svg-text-to-vector",
"description": "Converts textfield tags in an SVG file to vector paths.",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "index.js",

# svg-text-to-vector
> ### A powerful tool for working with text in SVG (Scalable Vector Graphics) files.
> ### A powerful tool for runtime text to vector conversion of complex SVG files.
**- Inkscape like Conversion:** An efficient solution to more traditional alternatives like Inkscape to perform the runtime conversion of complex svg files.
**- Inkscape like Conversion:** An efficient solution to more traditional alternatives like Inkscape.
**- Supported Tags:** Supports both **<text** and **<tspan** tags.
**- Color Fills:** Supports **Solid Fill, Linear and Radial Gradients**.
**- Attributes:** Supports attributes **x, y, opacity, stroke, stroke-width, stroke-dasharray, stroke-linecap, stroke-miterlimit**.
**- Easy to Use:** Provides a simple API to convert text to vector format with just a few lines of code.

@@ -8,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc