printf

Topics: Code Checkins, Language Specification
Apr 25, 2014 at 5:48 PM
Edited Apr 25, 2014 at 6:02 PM
would you guys be interested in a printf function for JavaScript? I have developed a fully functional JavaScript printf function to cpp specifications for all applicable data types (and chars).

Numerical dataType widths are ignored. The %p flag, long doubles, long ints and long long ints are not simulated, but I am considering doing so. It also has support for the Array and Date objects (including custom date/time format strings). Here is my documentation:

https://docs.google.com/document/d/1PdgisaRcoJuKSC793YSc9Sx9HnOG_w49KvIoYRAlXLU/edit?usp=sharing

and interactive demo.

https://googledrive.com/host/0B-5Y1OoryQYuWXJKLVcwZWh1eEk/test.htm