To thousands for number.
npm install -S @jswork/next-to-thousands
import '@jswork/next-to-thousands';
nx.toThousands('10000') //10,000
nx.toThousands('100') //100
nx.toThousands(10000) //10,000
nx.toThousands(1000,'|') //1|000
Code released under the MIT license.