Search results

377 packages found

Unique file name with streams support

published version 2.0.2, 5 years ago17 dependents licensed under $MIT
6,261,861

Find the module object for something that was require()d

published version 2.0.1, 2 years ago964 dependents licensed under $ISC
125,808,024

Regular expression to detect an extended-length path.

published version 0.2.2, a year ago1 dependents licensed under $Apache-2.0
1,818,375

Regular expression for matching reserved filename characters

published version 3.0.0, 4 years ago67 dependents licensed under $MIT
24,531,902

Pollyfill for node.js `path.parse`, parses a filepath into an object.

published version 1.0.2, 8 years ago205 dependents licensed under $MIT
28,630,292

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago475 dependents licensed under $MIT
25,034,588

Regular expression for matching file names, with or without extension.

published version 2.0.1, 8 years ago199 dependents licensed under $MIT
11,371,161

Sanitize a string for use as a filename

published version 1.6.3, 6 years ago1359 dependents licensed under $WTFPL OR ISC
11,405,795

Slugify a string

published version 2.2.1, 2 years ago557 dependents licensed under $MIT
6,102,710

Write data to a random temporary file

published version 6.0.0, a year ago247 dependents licensed under $MIT
5,773,392

Eslint rule for consistent filenames.

published version 1.3.2, 7 years ago294 dependents licensed under $MIT
2,427,163

Temporary files, directories or names!

published version 0.9.9, 9 years ago8 dependents licensed under $MIT
2,002,626

ESLint rules for consistent filename and folder. Allows you to enforce a consistent naming pattern for the filename and folder

published version 3.3.0, 22 days ago59 dependents licensed under $Apache-2.0
1,553,283

Convert a URL to a valid filename

published version 3.1.0, 2 years ago53 dependents licensed under $MIT
1,027,174

A regular expression that matches a CHANGELOG filename

published version 2.0.1, 7 years ago44 dependents licensed under $ISC
1,048,386

Modify the filename in a path

published version 2.0.0, 4 years ago123 dependents licensed under $MIT
637,955

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

published version 1.0.0, 6 years ago2 dependents licensed under $MIT
386,226

Get the basename of a filepath excluding extension.

published version 0.1.0, 10 years ago11 dependents licensed under $MIT
355,880

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.

published version 2.0.1, 6 years ago1 dependents licensed under $MIT
396,597

Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`

published version 4.0.1, 3 years ago34 dependents licensed under $MIT
438,019