Releases: mesqueeb/commafy-anything
Releases · mesqueeb/commafy-anything
v4.0.1
v4.0.0
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
v2.1.1
- update scripts c6b6127
- Remove ignored files 75c05d8
- chore: build ec682b1
- chore: build be7ac19
- chore: build 705e4ca
- chore: build 6aa2542
- build: cleanup 🧼 56e480d
- add funding 💜 72da33d
- update readme 🛵 6d209ba
- build: rename "typings" → "types" 557a2de
- Merge branch 'production' of https://github.com/mesqueeb/commafy-anything into production 89e5c2c
- build: add release script 3bcbe55
- Update README.md af331a0
- Update README.md fe28ba7
- Update README.md 4ba51d5
- feat: add K option 329305e
Only named exports & thousands comma by default
Breaking changes
Now there are only named exports:
// before
import commafy from 'commafy-anything'
// after
import { commafy } from 'commafy-anything'thousands comma is shown by default.
// before
t.is(commafy(1000), '1000')
t.is(commafy(10000), '10,000')
// now
t.is(commafy(1000), '1,000')
t.is(commafy(10000), '10,000')updated the options object & better typescript support:
// options as second param:
{ stripDecimals?: boolean, spacedDecimals?: boolean, thousandsComma?: boolean }
// of which defaults are
{ stripDecimals: false, spacedDecimals: false, thousandsComma: true }