numsep
Format numbers.
Split onto triads & wrap with html-elements instead of inserting space separators.
Perfect UX: copying gives no any separators in clipboard.
usage
var `<span></span>`;var numTmpl = triadTmpl;var num triadTmpl numTmpl; === "<span><span>1</span></span>" === "<span><span>100</span></span>" === "<span><span>10</span><span>001</span></span>" === "<span>-<span>10</span><span>001</span></span>" === "<span>-<span>10</span><span>001</span></span>" === "<span>-<span>10</span><span>001</span>.0</span>" === "<span>-<span>10</span><span>001</span>.505</span>" === "<span>-<span>10</span><span>001</span>.505</span>" === "<span>-<span>0</span>.505</span>" === "<span>-<span>0</span>.505</span>" === "<span><span>0</span>.505</span>"
style
Dirty simple css:
Result: