borgar / numfmt

Full ECMA-376 number and date formatting in JavaScript
40 stars 9 forks source link

Formatter can be configured via options #5

Closed borgar closed 3 years ago

borgar commented 3 years ago

Adds options and behaviour for:

Still to-do:

Closes #3 Closes #4

borgar commented 3 years ago

Should the 1900 leap year bug be on by default (useful for spreadsheet software but not for any other potential users).

Calling it as yes.

Should range be limited to the narrower one by default (useful for some spreadsheet software but not for any other potential users).

Calling it as yes. Narrow is only really useful for Excel emulation.

Would like to optimize the NBSP conversion by flagging parts that actually need it.

Leaving this for later.