richtr/NoSleep.js

Export as an instantiated class instead.

Opened this issue · 0 comments

Feature Proposal

NoSleep.js should export an instantiated class.

Feature Use Case

So it can be used without instantiation boilerplate:

const noSleep = require("no-sleep")

noSleep.enable()
noSleep.disable()