🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@nodelib/fs.stat

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodelib/fs.stat - npm Package Compare versions

Comparing version

to
4.0.0

LICENSE

1

out/adapters/fs.d.ts

@@ -1,2 +0,1 @@

/// <reference types="node" />
import * as fs from 'node:fs';

@@ -3,0 +2,0 @@ import type { ErrnoException } from '../types';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
exports.FILE_SYSTEM_ADAPTER = void 0;
exports.createFileSystemAdapter = createFileSystemAdapter;
const fs = require("node:fs");

@@ -20,2 +21,1 @@ exports.FILE_SYSTEM_ADAPTER = {

}
exports.createFileSystemAdapter = createFileSystemAdapter;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.read = void 0;
exports.read = read;
function read(path, settings, callback) {

@@ -30,3 +30,2 @@ settings.fs.lstat(path, (lstatError, lstat) => {

}
exports.read = read;
function callFailureCallback(callback, error) {

@@ -33,0 +32,0 @@ callback(error);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.read = void 0;
exports.read = read;
function read(path, settings) {

@@ -23,2 +23,1 @@ const lstat = settings.fs.lstatSync(path);

}
exports.read = read;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.statSync = exports.stat = void 0;
exports.stat = stat;
exports.statSync = statSync;
const async = require("./providers/async");

@@ -14,3 +15,2 @@ const sync = require("./providers/sync");

}
exports.stat = stat;
function statSync(path, optionsOrSettings) {

@@ -20,3 +20,2 @@ const settings = getSettings(optionsOrSettings);

}
exports.statSync = statSync;
function getSettings(settingsOrOptions = {}) {

@@ -23,0 +22,0 @@ if (settingsOrOptions instanceof settings_1.Settings) {

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
import type * as fs from 'node:fs';

@@ -4,0 +2,0 @@ export type Stats = fs.Stats;

{
"name": "@nodelib/fs.stat",
"version": "3.0.0",
"version": "4.0.0",
"description": "Get the status of a file with some features",

@@ -15,3 +15,3 @@ "license": "MIT",

"engines": {
"node": ">=16.14.0"
"node": ">=18.18.0"
},

@@ -25,2 +25,10 @@ "files": [

"typings": "out/index.d.ts",
"exports": {
".": {
"default": "./out/index.js"
},
"./promises": {
"default": "./out/stat-promises.js"
}
},
"scripts": {

@@ -36,4 +44,5 @@ "clean": "rimraf {tsconfig.tsbuildinfo,out}",

"devDependencies": {
"@nodelib/fs.macchiato": "2.0.0"
}
"@nodelib/fs.macchiato": "3.0.0"
},
"gitHead": "32f75d7dab34d403e1c3b8c3911437a9e3fc5f54"
}

@@ -26,2 +26,10 @@ # @nodelib/fs.stat

Also available with the promise interface:
```ts
import * as fsStat from '@nodelib/fs.stat/promises';
await fsStat.stat('path');
```
## API

@@ -33,2 +41,4 @@

> :book: If you want to use the Promise API, import `@nodelib/fs.stat/promises` or use `util.promisify`.
```ts

@@ -35,0 +45,0 @@ fsStat.stat('path', (error, stats) => { /* … */ });