Skip to content
JS
Package category

Files and file systems

Read, write, watch, glob and upload files.

629 packages5 comparisons

Packages compared

629 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
picomatch
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
363.4m+165%-1 month ago
4.0.7
CommonJSNoneFiles and file systems
glob
the most correct and second fastest glob implementation in JavaScript
292.5m+55%-7 months ago
13.0.6
ESM + CommonJSBundledFiles and file systems
glob-parent
Extract the non-magic parent path from a glob string.
248.9m+90%-4 years ago
6.0.2
CommonJSNoneFiles and file systems
locate-path
Get the first path that exists on disk of multiple paths
244.2m+55%-1 year ago
8.0.0
ESM onlyBundledFiles and file systems
ignore
Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.
237.8m+128%-2 days ago
7.0.10
-BundledFiles and file systems, Node.js utilities
path-exists
Check if a path exists
182.3m+73%-5 years ago
5.0.0
ESM onlyNoneFiles and file systems
fs-extra
fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.
166.5m+56%-2 days ago
11.4.1
CommonJSNoneFiles and file systems
chokidar
Minimal and efficient cross-platform file watching library
160.9m+103%-9 months ago
5.0.0
ESM onlyBundledFiles and file systems
readdirp
Recursive version of fs.readdir with small RAM & CPU footprint
156.3m+99%-1 month ago
5.1.1
ESM onlyBundledFiles and file systems
is-glob
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
152.5m+87%-4 years ago
4.0.3
CommonJSNoneFiles and file systems
graceful-fs
A drop-in replacement for fs, making various improvements.
152.5m+109%-3 years ago
4.2.11
CommonJSNoneFiles and file systems
tinyglobby
A fast and minimal alternative to globby and fast-glob
146.2m+377%-3 months ago
0.2.17
ESM + CommonJSBundledFiles and file systems
is-extglob
Returns true if a string has an extglob.
141.4m+116%-9 years ago
2.1.1
CommonJSNoneFiles and file systems
fdir
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
136.1m+290%-1 year ago
6.5.0
ESM + CommonJSBundledFiles and file systems, Scraping and browser automation
braces
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
133.7m+58%-2 years ago
3.0.3
CommonJSNoneFiles and file systems
fill-range
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
131.5m+52%-2 years ago
7.1.1
CommonJSNoneFiles and file systems
form-data
A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
128.4m+46%-3 months ago
4.0.6
CommonJSBundledFiles and file systems, Node.js utilities
micromatch
Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
126.5m+54%-2 years ago
4.0.8
CommonJSNoneFiles and file systems
to-regex-range
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
125.6m+67%-7 years ago
5.0.1
CommonJSNoneFiles and file systems
rimraf
A deep deletion module for node (like `rm -rf`)
124.6m+38%-7 months ago
6.1.3
ESM + CommonJSBundledCLI tools and terminal utilities, Files and file systems
flat-cache
A simple key/value storage using files to persist the data
119m+118%-2 months ago
6.1.23
ESM + CommonJSBundledCaching, Files and file systems
fast-glob
It's a very fast and efficient glob library for Node.js
114.5m+73%-1 year ago
3.3.3
CommonJSBundledFiles and file systems
normalize-path
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
109.6m+43%-8 years ago
3.0.0
CommonJSNoneFiles and file systems, Node.js utilities
make-dir
Make a directory and its parents if needed - Think `mkdir -p`
107.2m+30%-1 year ago
5.1.0
ESM onlyBundledFiles and file systems
mkdirp
Recursively mkdir, like `mkdir -p`
100m+9%-3 years ago
3.0.1
ESM + CommonJSBundledFiles and file systems
@nodelib/fs.stat
Get the status of a file with some features
97.4m+82%-1 year ago
4.0.0
CommonJSBundledFiles and file systems
@nodelib/fs.walk
A library for efficiently walking a directory recursively
94.1m+85%-1 year ago
3.0.1
CommonJSBundledFiles and file systems
@nodelib/fs.scandir
List files and directories inside the specified directory
93.5m+84%-1 year ago
4.0.1
CommonJSBundledFiles and file systems
anymatch
Matches strings against configurable strings, globs, regular expressions, and/or functions
90.7m+50%-3 years ago
3.1.3
-BundledFiles and file systems
@humanfs/node
The Node.js bindings of the humanfs library.
80.6m+309%-14 days ago
0.17.0
ESM onlyBundledFiles and file systems
@humanfs/core
The core of the humanfs library.
80.4m+263%-14 days ago
0.20.0
ESM onlyBundledFiles and file systems
path-type
Check if a path is a file, directory, or symlink
79.6m+21%-2 years ago
6.0.0
ESM onlyBundledFiles and file systems
globby
User-friendly glob matching
73.3m+16%-1 month ago
16.2.4
ESM onlyBundledFiles and file systems
fs.realpath
Use node's fs.realpath, but fall back to the JS implementation if the native one fails
73.1m+30%-10 years ago
1.0.0
CommonJSNoneFiles and file systems, Polyfills and shims
@humanfs/types
The TypeScript types for the hfs project.
55.4m+66778577%-14 days ago
0.16.0
ESM onlyBundledFiles and file systems
test-exclude
test for inclusion or exclusion of paths using globs
48m+23%-7 months ago
8.0.0
CommonJSNoneFiles and file systems
watchpack
Wrapper library for directory and file watching.
43.2m+56%-3 months ago
2.5.2
CommonJSBundledFiles and file systems
dir-glob
Convert directories to glob compatible strings
43.1m+14%-7 years ago
3.0.1
-NoneFiles and file systems
tar-fs
filesystem bindings for tar-stream
41.6m+66%-2 months ago
3.1.3
CommonJSNoneFiles and file systems
fb-watchman
Bindings for the Watchman file watching service
37.8m+35%-4 years ago
2.0.2
CommonJSNoneFiles and file systems
walker
A simple directory tree walker.
34.3m+31%-4 years ago
1.0.8
CommonJSNoneFiles and file systems
glob-to-regexp
Convert globs to regular expressions
34.1m+34%-7 years ago
0.4.1
CommonJSNoneFiles and file systems
read-pkg-up
Read the closest package.json file
33.4m+2%-2 years ago
11.0.0
ESM onlyBundledFiles and file systems
sonic-boom
Extremely fast utf8 only stream implementation
33m+169%-25 days ago
5.0.1
CommonJSBundledFiles and file systems
memfs
In-memory file-system with Node's fs API.
28.8m+48%-2 days ago
4.79.0
CommonJSBundledFiles and file systems, Testing
readdir-glob
Recursive fs.readdir with streaming API and glob filtering.
25.9m+159%-6 months ago
3.0.0
ESM + CommonJSBundledFiles and file systems
global-prefix
Get the npm global path prefix.
24.9m+26%-2 years ago
4.0.0
CommonJSNoneFiles and file systems, Node.js utilities
globrex
Glob to regular expression with support for extended globs
24.5m+279%-7 years ago
0.1.2
CommonJSNoneFiles and file systems
totalist
A tiny (195B to 220B) utility to recursively list all (total) files in a directory
24.2m+120%-3 years ago
3.0.1
ESM + CommonJSBundledFiles and file systems
global-modules
The directory used by npm for globally installed npm modules.
23.5m+21%-7 years ago
2.0.0
CommonJSNoneFiles and file systems

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • picomatchBlazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
  • globthe most correct and second fastest glob implementation in JavaScript
  • glob-parentExtract the non-magic parent path from a glob string.
  • locate-pathGet the first path that exists on disk of multiple paths
  • ignoreIgnore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.
  • path-existsCheck if a path exists
  • fs-extrafs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.
  • chokidarMinimal and efficient cross-platform file watching library
  • readdirpRecursive version of fs.readdir with small RAM & CPU footprint
  • is-globReturns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
  • graceful-fsA drop-in replacement for fs, making various improvements.
  • tinyglobbyA fast and minimal alternative to globby and fast-glob
  • is-extglobReturns true if a string has an extglob.
  • fdirThe fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
  • bracesBash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
  • fill-rangeFill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
  • form-dataA library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications.
  • micromatchGlob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
  • to-regex-rangePass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
  • rimrafA deep deletion module for node (like `rm -rf`)
  • flat-cacheA simple key/value storage using files to persist the data
  • fast-globIt's a very fast and efficient glob library for Node.js
  • normalize-pathNormalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
  • make-dirMake a directory and its parents if needed - Think `mkdir -p`
  • mkdirpRecursively mkdir, like `mkdir -p`
  • @nodelib/fs.statGet the status of a file with some features
  • @nodelib/fs.walkA library for efficiently walking a directory recursively
  • @nodelib/fs.scandirList files and directories inside the specified directory
  • anymatchMatches strings against configurable strings, globs, regular expressions, and/or functions
  • @humanfs/nodeThe Node.js bindings of the humanfs library.
  • @humanfs/coreThe core of the humanfs library.
  • path-typeCheck if a path is a file, directory, or symlink
  • globbyUser-friendly glob matching
  • fs.realpathUse node's fs.realpath, but fall back to the JS implementation if the native one fails
  • @humanfs/typesThe TypeScript types for the hfs project.
  • test-excludetest for inclusion or exclusion of paths using globs
  • watchpackWrapper library for directory and file watching.
  • dir-globConvert directories to glob compatible strings
  • tar-fsfilesystem bindings for tar-stream
  • fb-watchmanBindings for the Watchman file watching service
  • walkerA simple directory tree walker.
  • glob-to-regexpConvert globs to regular expressions
  • read-pkg-upRead the closest package.json file
  • sonic-boomExtremely fast utf8 only stream implementation
  • memfsIn-memory file-system with Node's fs API.
  • readdir-globRecursive fs.readdir with streaming API and glob filtering.
  • global-prefixGet the npm global path prefix.
  • globrexGlob to regular expression with support for extended globs
  • totalistA tiny (195B to 220B) utility to recursively list all (total) files in a directory
  • global-modulesThe directory used by npm for globally installed npm modules.