Re:Left-pad as a service
by paulclinger on Thursday March 24, 2016 @01:48PM
(#11354817)
You should be using emptystring.io instead of the "magic string" or a "null, null" hack.
Re:Left-pad as a service
by rkuykendall-com on Thursday March 24, 2016 @02:45PM
(#11355279)
Here you go: https://api.left-pad.io/?len=0
Re:Left-pad as a service
by capitalsigma on Thursday March 24, 2016 @11:22AM
(#11353491)
oh god it's too real
Poe's law for programming culture extremists
if you put https://api.left-pad.io/?len=1017 or anything higher than 1016 it says:
{"errorMessage":"len exceeds 1007 characters. Contact a left-pad.io sales engineer for an enterprise license","errorType":"Error","stackTrace":["exports.handler (/var/task/index.js:33:22)"]}
wow. they even have an enterprise sales engineer! :)
If you don't like the "" magic string in there you could replace it with a call to left-pad(null, null,0).