Search results
369 packages found
Sanitize a string for use as a filename
Find the module object for something that was require()d
ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder
Convert a string to a valid safe filename
Generate a unique string (e.g. for filenames or url slugs) using an incremental counter
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
Babel plugin to replace extension of file name written in import statement and dynamic import
Babel plugin to replace extension of file name written in import statement and dynamic import
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
Get the current line number of the executing file and method
- browser
- debug
- debugging
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- es5
- export-default
- file
- filename
- line
- line number
- View more
make ESM a bit more commonJS
Finds a unique filename using incremental values
Maps urls to simplified strings usable as filenames
Regular expression to detect an extended-length path.
Check if a string is a valid filename.
- check
- deno
- deno-edition
- deno-entry
- denoland
- es2022
- export-default
- file
- file format
- file name
- file naming
- file validation
- filename
- filename checking
- View more
Slugify a string
- string
- slugify
- slug
- url
- url-safe
- urlify
- transliterate
- transliteration
- deburr
- unicode
- ascii
- text
- decamelize
- pretty
- View more
Regular expression for matching reserved filename characters
Sanitize a string for use as a filename (French support
Generate archive metadata and directories for Metalsmith collections.
Node.js loader for import specifiers as file paths without extensions or as directory paths