• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gregswindle / parse-numeric / 60
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/prettier-2.2.0
DEFAULT BRANCH: master
Ran 17 Feb 2019 07:55AM UTC
Jobs 9
Files 5
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
60

push

travis-ci-com

gregswindle
feat(number-parsing): parse numeric-like values as numbers

The **parse-numeric** module provides two features:

1. `parseNumeric` is a function that converts numeric strings into Number
    types.
2. `parseNumeric.isNumeric` evaluates a value and determines whether the
    value can be converted to a Number type.

**parse-numeric** differs from similar modules in how it evaluates
`Strings` and what it returns:

```
parseNumeric
    when given a value that is
      a {string} that represents a {number}
        ✓ will convert the {string} to a {number}
      a non-numeric {string}
        ✓ will return the original value
      a {number}
        ✓ will return the {number}
      an empty {string}
        ✓ will return the empty {string}
      {null}
        ✓ will return {null} (1ms)
      {undefined}
        ✓ will return {undefined}
```

and

```
parseNumeric.isNumeric
    ✓ returns false for non-numeric values
    ✓ returns true for numbers and numeric strings
    ✓ returns true for numbers and numeric strings
```

This commit also includes CI build features with quality gates, as well
as documentation.

GH-1

8 of 8 branches covered (100.0%)

Branch coverage included in aggregate %.

24 of 24 relevant lines covered (100.0%)

67.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 60.1 17 Feb 2019 07:55AM UTC 0
100.0
Travis Job 60.1
2 60.2 17 Feb 2019 07:55AM UTC 0
100.0
Travis Job 60.2
3 60.3 17 Feb 2019 07:55AM UTC 0
100.0
Travis Job 60.3
4 60.4 17 Feb 2019 07:57AM UTC 0
100.0
Travis Job 60.4
5 60.5 17 Feb 2019 07:59AM UTC 0
100.0
Travis Job 60.5
6 60.6 17 Feb 2019 07:59AM UTC 0
100.0
Travis Job 60.6
7 60.7 17 Feb 2019 08:01AM UTC 0
100.0
Travis Job 60.7
8 60.8 17 Feb 2019 08:03AM UTC 0
100.0
Travis Job 60.8
9 60.9 17 Feb 2019 08:05AM UTC 0
100.0
Travis Job 60.9
Source Files on build 60
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #60
  • 19531707 on github
  • Prev Build on release-and-publish (#58)
  • Next Build on release-and-publish (#75)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc