Skip to content

[Replacement]: is-root #1020

Closed
Closed

Description

@outslept

Package to replace

is-root

Suggested replacement(s)

process.getuid && process.getuid() === 0;

Manifest type

micro-utility (tiny utility replaceable with native code or removal)

Rationale

inlinable

Availability

No response

Code example (optional)

Activity

  1. dreyfus92 commented on Aug 27, 2026

    @dreyfus92
    Member

    one small note for whoever picks this up, on windows process.getuid doesn't exist, so both the package and this snippet return undefined instead of false. faithful to the original, but the docs entry could show process.getuid?.() === 0 if we want a strict boolean.

  2. added
    accepted
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions