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

Rob--W / proxy-from-env / 22623984828 / 4
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v2.1.0
DEFAULT BRANCH: master
Ran 03 Mar 2026 12:56PM UTC
Files 2
Run time 0s
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

03 Mar 2026 12:27PM UTC coverage: 100.0%. Remained the same
22623984828.4

Pull #38

github

Rob--W
Restore CJS support for Node versions before 20

In 2.0.0 I dropped CJS support because `require(esm)` is supported by
default in v20.19.0, and `import` syntax even works in `v12.17.0`.

Despite anything earlier than 20 being EOL (and 20 itself going EOL next
month - https://nodejs.org/en/about/previous-releases ), some downstream
packages still want to support older Node versions.

This restores CJS support for versions as low as Node 10. Older versions
are unsupported due to the absence of the URL global in older versions.

index.cjs is a copy of index.js, except using CJS exports instead of ESM
exports. These files should be kept in sync until we drop CJS support
again.
Pull Request #38: Restore CJS support for Node versions before 20

72 of 72 branches covered (100.0%)

537 of 537 relevant lines covered (100.0%)

20.24 hits per line

Source Files on job coverage-node-20 - 22623984828.4
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22623984828
  • d4f238fb on github
  • Prev Job for on restore-cjs-support (#21811215135.3)
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