Skip to content

[RFC]: add fs/stat #2233

Open
Open

Description

@C0ldSmi1e

Description

This RFC proposes adding the package @stdlib/fs/stat for inspecting details of files asynchronously and synchronously.

var stat = require( '@stdlib/fs/stat' );
var statSync = require( '@stdlib/fs/stat' ).sync;

Related Issues

None.

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Activity

  1. C0ldSmi1e commented on May 5, 2024

    @C0ldSmi1e
    ContributorAuthor

    Hi, @kgryte . I found this can be used by other packages in @stdlib/fs. Can I try working on this?

  2. ImStillBlessed commented on Mar 16, 2026

    @ImStillBlessed
    Contributor

    Hi, @kgryte i am planning on applying to work on the idea 10 "Achieve feature parity with builtin Node.js fs module" for the GSoC '26

    This issue being directly in the path of the idea will be a great starting for understanding of the problem, and hands on experience,

    the @stdlib/fs/exists already uses the stats() function to check if a file exists.

    i propose adding the stats() function as a standalone to return full details of the file using the path,

    and i've seen your comments on other related commits, i will make sure to focus on making it backwards compatible with older node versions.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions