Skip to content

path: tilde expansion #684

Closed
Closed
@silverwind

Description

Carrying over this often-requested feature from nodejs/node-v0.x-archive#2857. There's two mechanisms in Unix concering the tilde in paths:

  1. expand ~ at the beginning of a path string to the current user's home directory.
  2. expand ~user at the beginning of a path string to the given user's home directory.

The first part should be quite trivial to add if #682 get implemented. The second part is far more uncommon and would likely require passwd parsing (for which consensus seems to be that it's libuv territory - libuv/libuv#11), and god-knows-what on Windows.

Would we be satisified if only the first part gets added to all relevant path functions? I assume this could be added in a non-breaking way, which wouldn't require a semver-major bump.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions