Search results

178 packages found

Get the very first directory name from file path `./foo/bar/baz` -> `foo` or `../a/b/c` -> `../a`. Useful when you just want first real directory from given file path

published 1.0.1 9 years ago
M
Q
P

Get the basename of a JSON filepath without the file extension.

published 0.1.0 7 years ago
M
Q
P

Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.

published 2.0.1 9 months ago
M
Q
P

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.

published 4.0.0 a year ago
M
Q
P

Remove leading directory components from a path, like tar's --strip-components option

published 3.0.0 6 years ago
M
Q
P

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

published 2.0.0 7 years ago
M
Q
P

Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).

published 4.0.1 9 months ago
M
Q
P

Convert strings to valid filenames or filepaths

published 1.0.1 5 years ago
M
Q
P

enforces folder and file names to match desired case style

published 1.1.1 5 years ago
M
Q
P
M
Q
P
M
Q
P

Test if a value is a UNC path.

published 0.2.1 2 months ago
M
Q
P

Get installation path where the given package is installed. Works for globally and locally installed packages

published 4.0.8 7 years ago
M
Q
P

Recursively read all files path from directory

published 1.0.3 3 years ago
M
Q
P

Change the file extension of a path

published 0.1.1 4 months ago
M
Q
P

A proxy to `path`, replacing `\` with `/` for all results

published 3.1.19 2 years ago
M
Q
P

Write file to disk, using promises and creating recursively intermediate directories if they don't exist.

published 1.0.0 9 years ago
M
Q
P

file path utils for the browser and node.js

published 0.0.4 8 years ago
M
Q
P

Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.

published 0.1.0 8 years ago
M
Q
P
M
Q
P