Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
Get paths for storing things like data, config, cache, etc
Convert a tilde path to an absolute path: `~/dev` → `/Users/sindresorhus/dev`
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Resolve a directory that is either local, global or in the user's home directory.
Get the system locale
Check if the process is running as root user, for example, one started with `sudo`
Get the user home directory with fallback to the system temp directory
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Parse a github URL into an object.
A cross-platform path to the user's home
Get metadata on the default editor or a specific editor
Get a GitHub username from an email address
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
Fastest, most accurate & effecient user agent string parser, uses Browserscope's research for parsing
Try to downgrade the permissions of a process with root privileges and block access if it fails
Block users from running your app with root permissions
Get the username of the current user
Get the passwd user entry from a username or user identifier (UID)
Get the fullname of the current user