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

npm / cli / #573
68%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 26 Oct 2020 11:54PM UTC
Jobs 1
Files 129
Run time 7s
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
#573

push

isaacs
view: Better errors when package.json is not JSON

Previously, `npm view <noargs>` was just saying "Invalid package.json"
if the package.json file was not JSON, or if it was missing.

This errors out with the appropriate error in these cases.

Also, no need to read the big clunky 'read-package-json' for this, we're
literally just checking for a single field.  We can be a bit more
efficient here.

1880 of 2934 branches covered (64.08%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

3644 of 5161 relevant lines covered (70.61%)

13.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #573.1 26 Oct 2020 11:54PM UTC 0
68.24
Source Files on build #573
Detailed source file information is not available for this build.
  • Back to Repo
  • 1aa7c7a7 on github
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