@financial-times/format-number

1.0.0 • Public • Published

@financial-times/format-number

Canonical number formatter for FT graphics and content, written in JavaScript. This is meant to be a 1:1 port of Financial-Times/ftddjr's Rlang number formatter.

Usage

  1. Install:

    $ npm install @financial-times/format-number
    
  2. Pass any number:

    import format from "@financial-times/format-number";
    
    console.log(format(1234567890)); // 1.2bn

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/format-number

Weekly Downloads

42

Version

1.0.0

License

ISC

Unpacked Size

5.13 kB

Total Files

4

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson