{ "_args": [ [ { "raw": "pidof@~1.0.2", "scope": null, "escapedName": "pidof", "name": "pidof", "rawSpec": "~1.0.2", "spec": ">=1.0.2 <1.1.0", "type": "range" }, "/export/home/matjaz/Zoneadmin/node_modules/sudo" ] ], "_from": "pidof@>=1.0.2 <1.1.0", "_id": "pidof@1.0.2", "_inCache": true, "_location": "/pidof", "_phantomChildren": {}, "_requested": { "raw": "pidof@~1.0.2", "scope": null, "escapedName": "pidof", "name": "pidof", "rawSpec": "~1.0.2", "spec": ">=1.0.2 <1.1.0", "type": "range" }, "_requiredBy": [ "/sudo" ], "_resolved": "https://registry.npmjs.org/pidof/-/pidof-1.0.2.tgz", "_shasum": "fba0eae1c8335a11eb8099f5d0f3efbc45cb4e90", "_shrinkwrap": null, "_spec": "pidof@~1.0.2", "_where": "/export/home/matjaz/Zoneadmin/node_modules/sudo", "author": { "name": "Jakob Borg", "email": "jakob@nym.se", "url": "http://nym.se/" }, "bugs": { "url": "https://github.com/calmh/node-pidof/issues" }, "dependencies": {}, "description": "Get PID of a running process", "devDependencies": { "mocha": "1.1.x", "should": "0.6.x" }, "directories": {}, "dist": { "shasum": "fba0eae1c8335a11eb8099f5d0f3efbc45cb4e90", "tarball": "https://registry.npmjs.org/pidof/-/pidof-1.0.2.tgz" }, "engines": { "node": "*" }, "homepage": "https://github.com/calmh/node-pidof", "main": "./lib/pidof.js", "maintainers": [ { "name": "calmh", "email": "jakob@nym.se" } ], "name": "pidof", "optionalDependencies": {}, "readme": "pidof\n=====\n\n[![build status](https://secure.travis-ci.org/calmh/node-pidof.png)](http://travis-ci.org/calmh/node-pidof)\n\nGet the PID of a running process, or `null` if it couldn't be found. Tested on\nMac OS X, Solaris and Linux. Guaranteed not to work on Windows.\n\nExample\n-------\n\n var pidof = require('pidof');\n \n pidof('cron', function (err, pid) {\n if (err) {\n console.log('Weird error getting PIDs');\n console.log(err);\n } else {\n if (pid) {\n console.log('Found cron at pid ' + pid);\n } else {\n console.log('Seems like there\\'s no cron on this system');\n }\n }\n });\n\nLicense\n-------\n\nMIT\n\n", "repository": { "url": "git+https://github.com/calmh/node-pidof.git" }, "scripts": { "test": "./node_modules/.bin/mocha -R spec" }, "version": "1.0.2" }