Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Get the user home directory with fallback to the system temp directory
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Returns an object with the (non-glob) base path and the actual pattern.
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Return true if a file path contains the given path.
Resolve the path of a package regardless of it having an entry point
Ensure directories exist before writing to them.
Copy files
Return whether a directory is a subdirectory of another directory
Find package.json files in parent directories, keep finding until you find the right one using iterators.
return all the parent directories for a directory
Read the closest package.json file
Determine XDG Base Directory paths (OS/platform portable)
walk a directory tree recursively with events
Determine (XDG-compatible) paths for storing application files (cache, config, data, etc)
- appdir
- application
- cache
- common
- config
- cross-platform
- data
- directory
- environment
- linux
- mac
- macos
- node4
- node6
- View more
Node JS directory compare
Determine common OS/platform paths (home, temp, ...)
A static file server for fancy apps
Find the an package.json in the path provided upwards
Import all modules in a directory