Skip to content

Cross platform passwd functions #11

@sindresorhus

Description

@sindresorhus

Moved from joyent/libuv#468

@isaacs said:

Regarding: nodejs/node-v0.x-archive#2857

It'd be lovely if there was a way to call a uv_* version of the pwnam family of functions. See man 3 pwnam.

This is needed to reliably and quickly get the home directory path. The home directory path is needed by a lot of node modules, but in some environments the $HOME environment variable is not defined. This can make all kinds of things fail as most code depend on it being defined. The same applies for getting the username of the current user, which is also currently slow and convoluted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions