Socket
Socket
Sign inDemoInstall

winapi

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winapi - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

15

package.json
{
"name": "winapi",
"version": "1.1.0",
"version": "2.0.0",
"description": "Misc windows API wrappers",

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

"bindings": "~1.2.1",
"nan": "^2.0.0"
"nan": "^1.9.0"
},

@@ -35,3 +35,6 @@ "scripts": {

],
"author": "Francois Leurent <131.js@cloudyks.org>",
"author": {
"name": "Francois Leurent",
"email": "131.js@cloudyks.org"
},
"license": "ISC",

@@ -41,3 +44,7 @@ "bugs": {

},
"homepage": "https://github.com/131/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",
"readmeFilename": "README.md",
"_id": "winapi@1.1.0",
"_from": "winapi@^1.1.0"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc