1.0.1 • Published 5 years ago

js-quantities-all v1.0.1

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

#Expand a string with quantities

Say you have the following string: "5GB", you can expand it to its numeric representation using this module.

It's actually very simple to use...

var parse_quantity = require('parse-quantities');


var measure = '5GB';
var qty = parse_quantity(measure);

console.log(qty);

Output:

{
    "scalar": 5,
    "baseScalar": 5000000000,
    "signature": 25600000000,
    "_conversionCache": {},
    "numerator: [ "<gigabyte>" ],
    denominator": [ "<1>" ],
    "initValue": "5GB",
    "_isBase": false,
    "_units": "GB"
}
1.0.1

5 years ago

1.0.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago