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
has-glob
Returns `true` if an array has a glob pattern.
623k-30%-10 years ago
1.0.0
CommonJSNoneFiles and file systems
dotignore
ignorefile/includefile matching .gitignore spec
621.4k+13%-6 years ago
0.1.2
CommonJSNoneFiles and file systems
react-native-blob-util
A module provides upload, download, and files access API. Supports file stream read/write for process large files.
620.6k+71%-1 day ago
0.25.1
CommonJSBundledFiles and file systems, React
fs2
fs (file system package) extensions
601.7k-28%-1 year ago
0.3.16
-NoneFiles and file systems
walk-back
Walk up the directory tree until the specified path is found.
577.9k+11%-6 months ago
5.1.2
ESM + CommonJSNoneFiles and file systems
@stdlib/fs-resolve-parent-path
Resolve a path by walking parent directories.
542k---7 months ago
0.2.3
CommonJSBundledFiles and file systems, Promises and async control flow
@stdlib/fs-exists
Test whether a path exists on the filesystem.
542k---7 months ago
0.2.3
CommonJSBundledFiles and file systems, Polyfills and shims
brfs
browserify fs.readFileSync() static asset inliner
536.4k-3%-7 years ago
2.0.2
CommonJSNoneFiles and file systems
mkdirp-promise
Promise version of mkdirp
512.4k-22%-9 years ago
5.0.1
CommonJSNonePromises and async control flow, Files and file systems
move-file
Move a file, directory, or symlink - Even works across devices
504.7k+27%-7 months ago
4.1.0
ESM onlyBundledFiles and file systems
del-cli
Delete files and directories - Cross-platform
503.7k+38%-1 year ago
7.0.0
ESM onlyNoneFiles and file systems, CLI tools and terminal utilities
fs-jetpack
Better file system API
480k+17%-3 years ago
5.1.0
CommonJSBundledFiles and file systems
formstream
A multipart/form-data encoded stream, helper for file upload.
455.3k+84%-1 year ago
1.5.2
CommonJSBundledFiles and file systems
dropzone
Handles drag and drop of files for you.
435.6k+1%-8 days ago
6.3.4
ESM + CommonJSBundledDOM and browser utilities, Files and file systems
expand-braces
Wrapper for [braces] to enable brace expansion for arrays of patterns.
416.8k+7%-10 years ago
0.1.2
CommonJSNoneFiles and file systems
@zenfs/core
A filesystem, anywhere
406.5k---13 days ago
2.7.6
ESM onlyBundledFiles and file systems
graphql-upload
Middleware and a scalar Upload to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
405k+31%-1 month ago
18.0.0
CommonJSNoneGraphQL, HTTP servers and web frameworks
get-installed-path
Get installation path where the given package is installed. Works for globally and locally installed packages
404.3k+172%-8 years ago
4.0.8
ESM + CommonJSNoneFiles and file systems
@sindresorhus/df
Get free disk space info from `df -kP`
387.7k---1 year ago
5.0.0
ESM onlyBundledFiles and file systems
file-exists
Check if filepath exists and is a file
383.8k+333%-8 years ago
5.0.1
CommonJSNoneFiles and file systems
progress-stream
Read the progress of a stream
368.1k-6%-9 years ago
2.0.0
CommonJSNoneFiles and file systems
express-fileupload
Simple express file upload middleware that wraps around Busboy
360k-2%-1 year ago
1.5.2
CommonJSNoneFiles and file systems, HTTP servers and web frameworks
resolve-package
Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
357k+283%-9 years ago
1.0.1
CommonJSNoneFiles and file systems
react-native-fs
Native filesystem access for react-native
355.2k+20%-4 years ago
2.20.0
CommonJSBundledFiles and file systems, React
@stdlib/fs-read-file
Read the entire contents of a file.
345k---7 months ago
0.2.3
CommonJSBundledFiles and file systems, Promises and async control flow
relative
Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
335.8k-22%-10 years ago
3.0.2
CommonJSNoneFiles and file systems
glob-all
Provide multiple patterns to node-glob
331.1k-9%-3 years ago
3.3.1
CommonJSNoneFiles and file systems
path-complete-extname
path.extname implementation adapted to also include multiple dots extensions.
322.1k-1%-8 years ago
1.0.0
CommonJSNoneFiles and file systems, Node.js utilities
compressorjs
JavaScript image compressor.
302.8k+75%-5 months ago
1.3.0
ESM + CommonJSBundledImage processing, Compression and archives
file-set
Cross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found).
297.8k+23%-1 year ago
5.3.0
ESM + CommonJSNoneFiles and file systems
grunt-contrib-clean
Clean files and folders
286.4k-13%--
2.0.1
CommonJSNoneFiles and file systems
unused-filename
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
279.4k+175%-4 years ago
4.0.1
ESM onlyBundledFiles and file systems
gulp-filter
Filter files in a `vinyl` stream
271k+59%-5 months ago
10.0.0
ESM onlyNoneFiles and file systems
gitignore-to-glob
Transforms .gitignore patterns to ones compatible with the glob package (used by Grunt & others)
255k+96%--
0.3.0
CommonJSNoneFiles and file systems
uri-path
Convert relative file system paths into safe URI paths
252.6k-10%-10 years ago
1.0.0
CommonJSNoneFiles and file systems
temp-fs
Temporary files, directories or names!
252.1k-52%--
0.9.9
CommonJSNoneFiles and file systems
@roberts_lando/vfs
Virtual File System for Node.js - userland shim for node:vfs
235.8k---5 months ago
0.3.3
CommonJSBundledFiles and file systems
glob-escape
Escape glob patterns
231.8k-39%--
0.0.2
-NoneFiles and file systems
level-filesystem
Full implementation of the fs module on top of leveldb
223.3k+62%-10 years ago
1.2.0
-NoneFiles and file systems
@ui5/fs
UI5 CLI - File System Abstraction
219.8k---3 months ago
4.0.6
ESM onlyNoneFiles and file systems
filepond
FilePond, Where files go to stretch their bits.
211.1k+60%-6 months ago
4.32.12
ESM + CommonJSBundledDOM and browser utilities, Files and file systems
cpx
Copy file globs, watching for changes.
209.2k-38%-10 years ago
1.5.0
CommonJSNoneFiles and file systems, CLI tools and terminal utilities
upath2
A proxy to `path`, replacing `\` with `/` for all results
208.7k+158%-1 month ago
3.1.25
CommonJSBundledFiles and file systems, Utility libraries
rename-overwrite
Like `fs.rename` but overwrites existing file or directory
203.5k+30%-5 months ago
7.0.1
ESM onlyNoneFiles and file systems
@allurereport/directory-watcher
File system watcher for directories
201.3k---7 days ago
3.18.0
ESM onlyBundledFiles and file systems, Testing
cpx2
Copy file globs, watching for changes.
200.4k+79%-16 days ago
9.0.3
ESM onlyBundledFiles and file systems, CLI tools and terminal utilities
trash
Move files and folders to the trash
199.2k+97%-6 months ago
10.1.1
ESM onlyBundledFiles and file systems
onchange
Use glob patterns to watch file sets and run a command when anything is added, changed or deleted.
190.3k+12%--
7.1.0
CommonJSBundledFiles and file systems
browserify-fs
fs for the browser using level-filesystem and browserify
186.8k+82%-12 years ago
1.0.0
-NoneFiles and file systems
filestack-js
Official JavaScript library for Filestack
186.7k+166%-2 months ago
3.51.6
ESM + CommonJSBundledImage processing, Files 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.

  • has-globReturns `true` if an array has a glob pattern.
  • dotignoreignorefile/includefile matching .gitignore spec
  • react-native-blob-utilA module provides upload, download, and files access API. Supports file stream read/write for process large files.
  • fs2fs (file system package) extensions
  • walk-backWalk up the directory tree until the specified path is found.
  • @stdlib/fs-resolve-parent-pathResolve a path by walking parent directories.
  • @stdlib/fs-existsTest whether a path exists on the filesystem.
  • brfsbrowserify fs.readFileSync() static asset inliner
  • mkdirp-promisePromise version of mkdirp
  • move-fileMove a file, directory, or symlink - Even works across devices
  • del-cliDelete files and directories - Cross-platform
  • fs-jetpackBetter file system API
  • formstreamA multipart/form-data encoded stream, helper for file upload.
  • dropzoneHandles drag and drop of files for you.
  • expand-bracesWrapper for [braces] to enable brace expansion for arrays of patterns.
  • @zenfs/coreA filesystem, anywhere
  • graphql-uploadMiddleware and a scalar Upload to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
  • get-installed-pathGet installation path where the given package is installed. Works for globally and locally installed packages
  • @sindresorhus/dfGet free disk space info from `df -kP`
  • file-existsCheck if filepath exists and is a file
  • progress-streamRead the progress of a stream
  • express-fileuploadSimple express file upload middleware that wraps around Busboy
  • resolve-packageResolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
  • react-native-fsNative filesystem access for react-native
  • @stdlib/fs-read-fileRead the entire contents of a file.
  • relativeGet the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
  • glob-allProvide multiple patterns to node-glob
  • path-complete-extnamepath.extname implementation adapted to also include multiple dots extensions.
  • compressorjsJavaScript image compressor.
  • file-setCross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found).
  • grunt-contrib-cleanClean files and folders
  • unused-filenameGet an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
  • gulp-filterFilter files in a `vinyl` stream
  • gitignore-to-globTransforms .gitignore patterns to ones compatible with the glob package (used by Grunt & others)
  • uri-pathConvert relative file system paths into safe URI paths
  • temp-fsTemporary files, directories or names!
  • @roberts_lando/vfsVirtual File System for Node.js - userland shim for node:vfs
  • glob-escapeEscape glob patterns
  • level-filesystemFull implementation of the fs module on top of leveldb
  • @ui5/fsUI5 CLI - File System Abstraction
  • filepondFilePond, Where files go to stretch their bits.
  • cpxCopy file globs, watching for changes.
  • upath2A proxy to `path`, replacing `\` with `/` for all results
  • rename-overwriteLike `fs.rename` but overwrites existing file or directory
  • @allurereport/directory-watcherFile system watcher for directories
  • cpx2Copy file globs, watching for changes.
  • trashMove files and folders to the trash
  • onchangeUse glob patterns to watch file sets and run a command when anything is added, changed or deleted.
  • browserify-fsfs for the browser using level-filesystem and browserify
  • filestack-jsOfficial JavaScript library for Filestack