top | item 23208206 (no title) stestagg | 5 years ago you can replace with this: function shorten(text, length) { return new Promise((a, r) => fetch(`http://leftpad.io/shorten?l=${length}&v=${encodeURIComponent(text)}`).then(rx=>rx.text().then(a, r), r)); } discuss order hn newest majewsky|5 years ago $ host leftpad.io Host leftpad.io not found: 3(NXDOMAIN) i_do_not_know_what_i_expected.png VRay|5 years ago haha, too bad those .io domains are so expensive, would make a hilarious joke load replies (1)
majewsky|5 years ago $ host leftpad.io Host leftpad.io not found: 3(NXDOMAIN) i_do_not_know_what_i_expected.png VRay|5 years ago haha, too bad those .io domains are so expensive, would make a hilarious joke load replies (1)
VRay|5 years ago haha, too bad those .io domains are so expensive, would make a hilarious joke load replies (1)
majewsky|5 years ago
VRay|5 years ago