Other articles


  1. Automatically format size string in Node.js

    So 16 September 2012
    By Uli Köhler

    In Node.js

    Problem: In NodeJS, you got a size of something (a file?) in bytes, but you want to format it for better readability. For example if your size is 10000 bytes, you want to print “10 kilobytes”, but if it is 1200000, you want to print “1.20 megabytes”.

    Solution: Use ...

    read more