commaize add commas to a number string import commaize from 'commaize'; console.log( commaize(1000000) ); // <-- prints: '1,000,000'