Ray.so: Create beautiful images of your code

https://ray.so/

Simple and easy tool to beatify your code to display it as image.

from:

```

module.exports = leftpad;

function leftpad(str, len, ch) {

str = String(str);

var i = -1;

if (!ch && ch !== 0) ch = ' ';

len = len - str.length;

while (i++ < len) {

str = ch + str;

}

return str;

}

```

to:

![](https://m.stacker.news/74793)

pretty nice!

originally posted at https://stacker.news/items/865551

Reply to this note

Please Login to reply.

Discussion

No replies yet.