Displaying 1 to 3 from 3 results

passwd-user - Get the passwd user entry from a username or uid

  •    Javascript

Works on macOS and Linux. See user-info if you need cross-platform support.Accepts a username or uid number. Defaults to the current user (process.getuid()).

pwuid - getpwuid() Node.js binding - returns username, name, home directory, shell, gid from uid

  •    C++

If you're creating a reusable module you should probably use passwd-user instead, as it shells out rather than using a native binding.getpwuid() is a POSIX function and won't work on Windows.

node-posix-ext - A drop-in replacement for the Node

  •    C++

A drop-in replacement for the Node.js modules process, fs and posix providing their POSIX functionality on both POSIX and Windows platforms. Node.js exposes POSIX APIs, among the others. Some of them are implemented on Windows, some are not. When writing a cross-platform code, the latter must be wrapped by additional code, because the Node.js built-ins do not offer a cross-platform feature.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.