Socket
Socket
Sign inDemoInstall

winapi

Package Overview
Dependencies
14
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.9.15 to 2.10.0

8

package.json
{
"name": "winapi",
"version": "2.9.15",
"version": "2.10.0",
"description": "Misc windows API wrappers",

@@ -29,3 +29,3 @@ "main": "index.js",

"type": "git",
"url": "git@git.ivsdev.net:3rd/node-winapi.git"
"url": "git+ssh://git@github.com/131/node-winapi.git"
},

@@ -46,5 +46,5 @@ "keywords": [

"bugs": {
"url": "https://git.ivsdev.net/3rd/node-winapi/issues"
"url": "https://github.com/131/node-winapi/issues"
},
"homepage": "https://git.ivsdev.net/3rd/node-winapi#readme",
"homepage": "https://github.com/131/node-winapi#readme",
"readme": "# winapi\r\nMisc natives wrappers for nodejs\r\n\r\n## require('winapi').getIdleTime()\r\nReturn the time the system has been idle (since last user interaction - e.g. mouse, keyboard & stuffs, see GetLastInputInfo)\r\nThis is really usefull if you want to create a screensaver/like in nodejs / node-webkit.\r\n\r\n```\r\nvar winapi = require('winapi');\r\n\r\nconsole.log(\"System is idle since %s\", winapi.getIdleTime() );\r\n\r\n```\r\n\r\n\r\n\r\n## require('winapi').GetLastInputInfo()\r\nUse this native binding to get system last input time ([see MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646302%28v=vs.85%29.aspx) )\r\n\r\n```\r\nvar winapi = require('winapi');\r\n\r\nconsole.log(\"Last input time is %s\", winapi.GetLastInputInfo() );\r\n\r\nsetTimeout(function(){\r\n //do not move, it wont change !\r\n console.log(\"Last input time is %s\", winapi.GetLastInputInfo() );\r\n}, 1000);\r\n\r\n```\r\n\r\n\r\n## require('winapi').GetTickCount()\r\nRetrieves the number of milliseconds that have elapsed since the system was started (uptime). ([see MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408%28v=vs.85%29.aspx) )\r\n\r\n\r\n# Credits\r\n* [131](mailto:131.js@cloudyks.org)\r\n\r\n\r\n# Keywords / shout box\r\nscreensaver, windows api, winuser.h, GetLastInputInfo, activity monitor, inactivity trigger, idle timer, system uptime, sytem bootime\r\n\r\n\r\n",

@@ -51,0 +51,0 @@ "readmeFilename": "README.md",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc