Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

getpw

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getpw - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.travis.yml

7

package.json
{
"name": "getpw",
"description": "node.js wrapper for POSIX getpwuid() function",
"version": "0.0.1",
"version": "0.0.2",
"contributors": [

@@ -10,3 +10,8 @@ { "name": "Ken Woodruff", "email": "ken.woodruff@gmail.com" }

"main": "build/Release/getpw.node",
"scripts": {
"preinstall": "node-waf configure build",
"prepublish": "node-waf distclean",
"test": "node test.js"
},
"engines": { "node": ">= 0.4.7" }
}

9

test.js

@@ -1,3 +0,8 @@

var getpw = require("./build/Release/getpw");
var getpw = require("./build/Release/getpw"), assert = require("assert");
console.log(getpw.getpwuid(process.getuid()));
var pw = getpw.getpwuid(process.getuid());
["pw_name", "pw_uid"].forEach(function (k) {
assert.ok(k in pw, 'expected key "' + k + '" not found in result');
});
console.log("getpwuid: %s", JSON.stringify(getpw.getpwuid(process.getuid()), null, " "));
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