Search results
358 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
Convert a string to a valid safe filename
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
make ESM a bit more commonJS
Babel plugin to replace extension of file name written in import statement and dynamic import
Slugify a string
- string
- slugify
- slug
- url
- url-safe
- urlify
- transliterate
- transliteration
- deburr
- unicode
- ascii
- text
- decamelize
- pretty
- View more
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
Generate a unique string (e.g. for filenames or url slugs) using an incremental counter
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
Smart and effective path truncation.
Finds a unique filename using incremental values