npm numeral

JavaScript
npm i numeral
var string = numeral(1000).format('0,0'); // '1,000'
Source

Also in JavaScript: