add test for maximum supported number size, add export so this can be used in node or in browser