@nodelib/fs.stat

  • Version 2.0.5
  • Published
  • 11.8 kB
  • No dependencies
  • MIT license

Install

npm i @nodelib/fs.stat
yarn add @nodelib/fs.stat
pnpm add @nodelib/fs.stat

Overview

Get the status of a file with some features

Index

Functions

function stat

stat: typeof stat;

    function statSync

    statSync: (path: string, optionsOrSettings?: Options | Settings) => any;

      Classes

      class Settings

      class Settings {}

        constructor

        constructor(_options?: Options);
          readonly followSymbolicLink: boolean;

            property fs

            readonly fs: fs.FileSystemAdapter;
              readonly markSymbolicLink: boolean;
                readonly throwErrorOnBrokenSymbolicLink: boolean;

                  Interfaces

                  interface FileSystemAdapter

                  interface FileSystemAdapter {}

                    property lstat

                    lstat: StatAsynchronousMethod;

                      property lstatSync

                      lstatSync: StatSynchronousMethod;

                        property stat

                        stat: StatAsynchronousMethod;

                          property statSync

                          statSync: StatSynchronousMethod;

                            interface Options

                            interface Options {}
                              followSymbolicLink?: boolean;

                                property fs

                                fs?: Partial<fs.FileSystemAdapter>;
                                  markSymbolicLink?: boolean;
                                    throwErrorOnBrokenSymbolicLink?: boolean;

                                      Type Aliases

                                      type AsyncCallback

                                      type AsyncCallback = async.AsyncCallback;

                                        type StatAsynchronousMethod

                                        type StatAsynchronousMethod = (
                                        path: string,
                                        callback: (error: ErrnoException | null, stats: fs.Stats) => void
                                        ) => void;

                                          type Stats

                                          type Stats = fs.Stats;

                                            type StatSynchronousMethod

                                            type StatSynchronousMethod = (path: string) => fs.Stats;

                                              Namespaces

                                              namespace stat

                                              namespace stat {}

                                                Package Files (4)

                                                Dependencies (0)

                                                No dependencies.

                                                Dev Dependencies (1)

                                                Peer Dependencies (0)

                                                No peer dependencies.

                                                Badge

                                                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@nodelib/fs.stat.

                                                • Markdown
                                                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@nodelib/fs.stat)
                                                • HTML
                                                  <a href="https://www.jsdocs.io/package/@nodelib/fs.stat"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>