3.4.0 • Published 5 years ago

price-parser v3.4.0

Weekly downloads
210
License
ISC
Repository
github
Last release
5 years ago
const priceParser = require('price-parser');

priceParser.parseFirst('31 june: only £ 54 each — 1 time offer!');
// { value: 5400, floatValue: 54, symbol: '£', currencyCode: 'gbp' }
// Note: values are in smallest currency unit

priceParser.parseAll('Was £5.99, now £2.99',);
// [
//   { value: 599, floatValue: 5.99, symbol: '£', currencyCode: 'gbp' },
//   { value: 299, floatValue: 2.99, symbol: '£', currencyCode: 'gbp' },
// ]
3.4.0

5 years ago

3.3.0

5 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.4.7

6 years ago

2.4.6

6 years ago

2.4.5

6 years ago

2.4.4

6 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago