Search results
361 packages found
Sanitize a string for use as a filename
Find the module object for something that was require()d
Unique file name with streams support
Babel plugin to replace extension of file name written in import statement and dynamic import
Generate archive metadata and directories for Metalsmith collections.
Offset items in a Metalsmith collection.
Babel plugin to replace extension of file name written in import statement and dynamic import
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
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
Generate a unique string (e.g. for filenames or url slugs) using an incremental counter
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
A tiny isomorphic ESM alternative to Node's __filename global.
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
Smart and effective path truncation.
Finds a unique filename using incremental values
Parse file names of tv show episodes.