This package has been deprecated

Author message:

moved to @schlameel/native-idle-time

native-idle-time

1.0.3 • Public • Published

native-idle-time

Cross platform NodeJS addon to get user idle time.

native-idle-time queries the native windowing system (Windows, X, macOS) for the user's idle time, providing the number of milliseconds the user has been idle. The idle time is the same that is used to launch screensavers.

Install

npm install native-idle-time

Usage

const idleTime = require('native-idle-time')

setTimeout(() => {
  var millis = idleTime.getMillis()
  console.log(`User idle time: ${millis}ms`)
}, 1000)

License

MIT

Package Sidebar

Install

npm i native-idle-time

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

8.06 kB

Total Files

10

Last publish

Collaborators

  • schlameel