Skip to content

Commit

Permalink
Merge pull request #1 from hypersoftllc/develop
Browse files Browse the repository at this point in the history
Badges and Coverage
  • Loading branch information
dhurlburtusa committed May 18, 2017
2 parents 2736980 + 7bae73c commit 5e84f04
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
/coverage
/dist

.coveralls.yml
npm-debug.log
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- "5"
- "4"
script: npm run travisci
after_success:
- npm run coveralls
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# qc-to_num

[![Build Status][travis-svg]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

A simple JavaScript utility to convert various values to a number.

**What it does that `parseFloat` doesn't**
Expand Down Expand Up @@ -29,3 +36,15 @@ toNum('+3.1459'); // 3.1459
toNum('-2.6'); // -2.6
toNum(-2.6); // -2.6
```


[coverage-image]: https://coveralls.io/repos/github/hypersoftllc/qc-to_num/badge.svg?branch=master
[coverage-url]: https://coveralls.io/github/hypersoftllc/qc-to_num?branch=master
[downloads-image]: http://img.shields.io/npm/dm/qc-to_num.svg
[downloads-url]: http://npm-stat.com/charts.html?package=qc-to_num
[license-image]: http://img.shields.io/npm/l/qc-to_num.svg
[license-url]: LICENSE
[package-url]: https://npmjs.org/package/qc-to_num
[npm-badge-png]: https://nodei.co/npm/qc-to_num.png?downloads=true&stars=true
[travis-svg]: https://travis-ci.org/hypersoftllc/qc-to_num.svg?branch=master
[travis-url]: https://travis-ci.org/hypersoftllc/qc-to_num
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
},
"scripts": {
"build": "tsc",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"prepublish": "tsc",
"test": "jest --color --coverage",
"travisci": "npm test"
Expand All @@ -60,6 +61,7 @@
},
"devDependencies": {
"@types/jest": "^19.2.2",
"coveralls": "^2.13.1",
"jest": "^19.0.2",
"ts-jest": "^19.0.14",
"typescript": "^2.3.2"
Expand Down

0 comments on commit 5e84f04

Please sign in to comment.