Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

@nodelib/fs.walk 1.2.8

A library for efficiently walking a directory recursively
Package summary
Share
0
issues
2
licenses
6
MIT
1
ISC
Package created
12 May 2019
Version published
8 Jul 2021
Maintainers
1
Total deps
7
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
queue-microtask@1.2.3
reusify@1.0.4
run-parallel@1.2.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
fastq@1.17.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of @nodelib/fs.walk 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@nodelib/fs.scandir2.1.56.43 kBMIT
prod
fastq1.17.18.68 kBISC
prod

Visualizations

Frequently Asked Questions

What does @nodelib/fs.walk do?

@nodelib/fs.walk is a Javascript library designed for efficiently traversing a directory recursively. It offers useful built-in features such as returning efficient information on directories and files (such as their names, paths, directory entries, and stats), built-in directories/files and error filtering systems, and the ability to work safely with broken symbolic links. This library is perfect for developers wanting to handle complex directory and file management tasks in Node.js.

How do you use @nodelib/fs.walk?

To use @nodelib/fs.walk, you first need to install the package using npm. You can do this from your project directory in the command line with npm install @nodelib/fs.walk. Once installed, you can import it into your JavaScript or TypeScript file. Here are some usage examples:

To walk a directory asynchronously, use the .walk method:

import * as fsWalk from '@nodelib/fs.walk';

fsWalk.walk('path-to-your-directory', (error, entries) => { 
  // Handle output or errors here
});

If you want to use a Readable Stream, use the .walkStream method:

const stream = fsWalk.walkStream('path-to-your-directory');

And to walk a directory synchronously, use the .walkSync method:

const entries = fsWalk.walkSync('path-to-your-directory');

Where are the @nodelib/fs.walk docs?

The official documentation for @nodelib/fs.walk can be found on the readme file in the GitHub repository at https://github.com/nodelib/nodelib.git#master. These documents feature detailed instructions on the usage of the package, examples, and additional information on both its API and all possible options for deeper customization. This comprehensive documentation makes the package accessible for developers at all levels.