New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

filesweep

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filesweep

An alternate glob that returns full file paths, eliminating redundant path.join operations.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

filesweep

filesweep is a streamlined alternative to glob, designed to return immediately useful file paths without extra path.join operations. By appending full file paths directly to the provided directory, it enhances semantic clarity and reduces boilerplate in most common file-handling tasks.

Install

npm install filesweep

Usage

import sweep from 'filesweep';

const files = await sweep('./');
console.log(files);
// ['./LICENSE', './README.md', ...etc]

const filesByExt = await sweep('./','**/*.md');
console.log(filesByExt);
// ['./README.md']

API

sweep() (Default)

sweep() is designed as a semantic alternative to glob(), differentiating itself by returning full file paths. This eliminates redundant path.join operations, improving code readability in common file-handling workflows.

glob()

Provides standard glob behavior for cases where standard results are preferred.

Development Homepage:

https://github.com/alexstevovich/filesweep

This link might become filesweep-node in the future if conflicts arise.

License

Licensed under the Apache License 2.0.

Keywords

file system

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts