Modify the filename in a path
Modify the filename in a path
shim for require.main.filename() that works in as many environments as possible
Generate a unique filename for use in temporary directories or caches.
Easily read/write JSON files.
Sanitize a string for use as a filename
Write files in an atomic fashion w/configurable ownership
Create and parse Content-Disposition header
Check if a filename is safe to use in a path join operation
Return the filename and line number of the calling function
Regular expression for matching file names, with or without extension.
Regular expression for matching reserved filename characters
Return the filename and line number of the calling function
Convert a string to a valid safe filename
Webpack loader that adjusts source maps
unist utility to modify direct children of a parent
Filter out system junk files like .DS_Store and Thumbs.db
Parse JSON with more helpful errors
A Vite plugin which support Module Federation.
Modify the values of an object
Runtime sourcemap support in NodeJS
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
Get the file associated with a Sass import
Easy error subclassing and stack customization
The Filepath class provides immutable objects with dozens of convenience methods for common operations such as calculating relative paths, concatenating paths, finding all the files in a directory or modifying all the extensions of a list of filenames at once.
Very simple class to ensure that filenames are unique. If you are generating files into directory or adding files to zip archive, you probably want to avoid filenames collistion, when one file can overwrite another one with the same name. If filename is duplicated returns modified filename incremented sequentially.
This gem allows you to copy your static assets to include a unique hash in their filename. By using this and modifying your Rails asset path you can easily enable your Rails application to serve static content using CloudFront with a custom origin policy.