Search results
369 packages found
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
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
Sanitize a string for use as a filename
Convert a string to a valid safe filename
Regular expression to detect an extended-length path.
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
Regular expression for matching reserved filename characters
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
Slugify a string
- string
- slugify
- slug
- url
- url-safe
- urlify
- transliterate
- transliteration
- deburr
- unicode
- ascii
- text
- decamelize
- pretty
- View more
Generate archive metadata and directories for Metalsmith collections.
Node.js loader for import specifiers as file paths without extensions or as directory paths
A module to bring back `__dirname` and `__filename` within 2 lines of code.
Offset items in a Metalsmith collection.
Eslint rule for consistent filenames.
this is smart package
Unique file name with streams support
retext plugin to classify url-like values as syntax, not natural language
Useful additions to inbuilt path module.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more
Useful additions to inbuilt path module {web}.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more