Search results
377 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Unique file name with streams support
Find the module object for something that was require()d
Regular expression to detect an extended-length path.
Regular expression for matching reserved filename characters
Pollyfill for node.js `path.parse`, parses a filepath into an object.
- absolute
- basename
- dir
- directory
- dirname
- ext
- extension
- extname
- file
- filename
- filepath
- is-absolute
- name
- object
- View more
Convert a string to a valid safe filename
Regular expression for matching file names, with or without extension.
Sanitize a string for use as a filename
Slugify a string
- string
- slugify
- slug
- url
- url-safe
- urlify
- transliterate
- transliteration
- deburr
- unicode
- ascii
- text
- decamelize
- pretty
- View more
Write data to a random temporary file
Eslint rule for consistent filenames.
Temporary files, directories or names!
ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder
Convert a URL to a valid filename
A regular expression that matches a CHANGELOG filename
- regex
- regexp
- file
- filename
- name
- log
- changelog
- change-log
- updates
- releases
- release-history
- history
- releasenote
- match
- View more
Modify the filename in a path
When copying or moving files, it's common for operating systems to automatically add an increment or 'copy' to duplicate file names. This does that for Node.js applications, with automatic platform detection and support for Linux, MacOs, and Windows conve
Get the basename of a filepath excluding extension.
Operating systems commonly add a trailing increment, or the word 'copy', or something similar to duplicate files. This strips those increments. Tested on Windows, MacOS, and Linux.
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`