Search results

1000+ packages found

Get the user home directory with fallback to the system temp directory

published version 4.0.0, 4 years ago251 dependents licensed under $MIT
6,184,352

Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`

published version 3.0.0, 3 years ago603 dependents licensed under $MIT
6,220,118

Returns an object with the (non-glob) base path and the actual pattern.

published version 0.3.0, 9 years ago241 dependents licensed under $MIT
6,989,778

Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)

published version 0.10.0, 9 years ago129 dependents licensed under $MIT
4,503,172

Return true if a file path contains the given path.

published version 1.0.0, 8 years ago146 dependents licensed under $MIT
5,497,422

Resolve the path of a package regardless of it having an entry point

published version 2.0.0, 6 years ago184 dependents licensed under $MIT
4,903,551

Ensure directories exist before writing to them.

published version 2.0.1, 2 years ago29 dependents licensed under $MIT
5,622,368

Copy files

published version 11.1.0, 6 months ago464 dependents licensed under $MIT
4,594,420

Return whether a directory is a subdirectory of another directory

published version 1.2.0, 4 years ago41 dependents licensed under $MIT
4,643,091

Find package.json files in parent directories, keep finding until you find the right one using iterators.

published version 1.2.0, 6 years ago288 dependents licensed under $MIT
4,345,119

return all the parent directories for a directory

published version 1.0.1, 10 years ago107 dependents licensed under $MIT
3,304,110

Read the closest package.json file

published version 11.0.0, a year ago124 dependents licensed under $MIT
3,278,292

Determine XDG Base Directory paths (OS/platform portable)

published version 10.6.0, 2 years ago9 dependents licensed under $MIT
2,187,653

walk a directory tree recursively with events

published version 2.2.3, 10 years ago86 dependents licensed under $MIT
2,010,584

Determine (XDG-compatible) paths for storing application files (cache, config, data, etc)

published version 8.3.0, 2 years ago29 dependents licensed under $MIT
2,184,854

Node JS directory compare

published version 5.0.0, 8 months ago114 dependents licensed under $MIT
2,195,630

Determine common OS/platform paths (home, temp, ...)

published version 7.4.0, 2 years ago5 dependents licensed under $MIT
2,187,133

A static file server for fancy apps

published version 9.1.0, 2 months ago45 dependents licensed under $MIT
1,528,282

Find the an package.json in the path provided upwards

published version 2.0.0, 3 years ago7 dependents licensed under $MIT
1,614,677

Import all modules in a directory

published version 3.2.0, 2 years ago35 dependents licensed under $MIT
1,311,545