-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
52 lines (52 loc) · 2.46 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"name": "winapi",
"version": "2.10.2",
"description": "Misc windows API wrappers",
"main": "index.js",
"dependencies": {
"nan": "^2.18.0",
"node-gyp-build": "^4.4.0"
},
"scripts": {
"eslint": "eslint index.js",
"test": "node node_modules/mocha/bin/mocha test",
"install": "node-gyp-build"
},
"os": [
"win32"
],
"gypfile": true,
"devDependencies": {
"eslint-plugin-ivs": "^1.0.7",
"expect.js": "^0.3.1",
"mocha": "^2.4.5"
},
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/131/node-winapi.git"
},
"keywords": [
"screensaver",
"GetLastInputInfo",
"winapi",
"windows.h",
"activity",
"idletimer"
],
"author": {
"name": "Francois Leurent",
"email": "131.js@cloudyks.org"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/131/node-winapi/issues"
},
"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"
}