question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What does this module do?

See original GitHub issue

Forgive me for a potentially elementary question, but I saw this module in use in the wild and couldn’t figure out what it was for other than to satisfy linting errors. Coming upon the README didn’t offer much more on the subject, so I thought I’d ask. And suggest perhaps putting the “why” in the README?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
timwiscommented, Jun 23, 2016

Oh wow, I’ve been using jsdom-global for that. This sounds much simpler! Thanks for the explanation. Do you think it’s worth adding a note similar to your response to the readme? Or do most others get it?

0reactions
Raynoscommented, Mar 8, 2017

@ndugger

I think this module is only for exposing browser globals that can be “mocked” in node. A library can import this library so that the library can be tested in both a browser and nodejs and phantomjs, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a module in software, hardware and programming?
A module is a distinct assembly of components that can be easily added, removed or replaced in a larger system. Generally, a module...
Read more >
What is a Module? - Definition from Techopedia
A module is a software component or part of a program that contains one or more routines. One or more independently developed modules...
Read more >
Modules, introduction - The Modern JavaScript Tutorial
A module is just a file. One script is one module. As simple as that. Modules can load each other and use special...
Read more >
Engine Control Module Overview - Counterman Magazine
The Engine Control Module (also called the Powertrain Control Module or PCM) is the brains of the engine management system. It controls the...
Read more >
What Does an Electronic Control Module Do? - It Still Runs
The electronic control module receives data via dozens of sensors in the car's electrical systems and performs calculations to determine such factors as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found