<a href="https://typescript-spritz.stackblitz.io" rel="nofollow">https://typescript-spritz.stackblitz.io</a><p>License is Public Domain/CC0 and the code is here: <a href="https://stackblitz.com/edit/typescript-spritz" rel="nofollow">https://stackblitz.com/edit/typescript-spritz</a><p>PS: This is a really quick hack because my Spritzlet license ran out and I hated that Spritz doesn't show long words longer than short words for a long time.<p>Spritz Homepage for reference: <a href="https://www.spritz.com/" rel="nofollow">https://www.spritz.com/</a>
This is awesome.<p>I know it's just a quick hack, but I'm curious about this in the code:<p><pre><code> 200 +(30*word.length - 7)
</code></pre>
I've never used TypeScript, but I'm assuming this is the same as:<p><pre><code> (200 - 7) +(30*word.length)
</code></pre>
But I guess you meant:<p><pre><code> 200 +(30*(word.length - 7))</code></pre>