1.2.0 • Published 8 years ago

prefix-si v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

prefix-si

SI, IEC, BS1852 compatible number formatter

Install

$ npm install prefix-si

Usage

prefix = require('prefix-si')

prefix(1024*1024, "B", {binary: true})
// => "1MiB"

prefix(1200, "g")
// => "1.2kg"

prefix(4700, "R", {bs1852: true})
// => "4K7"
1.2.0

8 years ago

1.1.0

8 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago