Skip to content

Commit

Permalink
Updated CI badge on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Feb 8, 2021
1 parent 28201be commit 80426cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# numeric-quantity

[![npm version](https://badge.fury.io/js/numeric-quantity.svg)](//npmjs.com/package/numeric-quantity)
[![Travis (.org)](https://img.shields.io/travis/jakeboone02/numeric-quantity)](https://travis-ci.org/jakeboone02/numeric-quantity)
![workflow status](https://github.com/jakeboone02/numeric-quantity/workflows/Continuous%20Integration/badge.svg)
[![codecov.io](https://codecov.io/github/jakeboone02/numeric-quantity/coverage.svg?branch=master)](https://codecov.io/github/jakeboone02/numeric-quantity?branch=master)
[![downloads](https://img.shields.io/npm/dm/numeric-quantity.svg)](http://npm-stat.com/charts.html?package=numeric-quantity&from=2015-08-01)
[![MIT License](https://img.shields.io/npm/l/numeric-quantity.svg)](http://opensource.org/licenses/MIT)
Expand Down Expand Up @@ -31,7 +31,7 @@ In the browser, available as a global function `numericQuantity`.
```html
<script src="path/to/numeric-quantity.umd.js"></script>
<script>
console.log(numericQuantity("10 1/2")); // 10.5
console.log(numericQuantity('10 1/2')); // 10.5
</script>
```

Expand All @@ -40,8 +40,8 @@ In the browser, available as a global function `numericQuantity`.
```js
import numericQuantity from 'numeric-quantity';

console.log( numericQuantity("1 1/2") ); // 1.5
console.log( numericQuantity("2 2/3") ); // 2.666
console.log(numericQuantity('1 1/2')); // 1.5
console.log(numericQuantity('2 2/3')); // 2.666
```

The return value will be `NaN` if the provided string does not resemble a number.

0 comments on commit 80426cb

Please sign in to comment.