sindresorhus / usernameView external linksLinks
Get the username of the current user
☆145Nov 14, 2023Updated 2 years ago
Alternatives and similar repositories for username
Users that are interested in username are comparing it to the libraries listed below
Sorting:
- Get the fullname of the current user☆48Sep 1, 2023Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Regular expression for matching issue references☆49Sep 26, 2024Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Get all email addresses in a string☆60Feb 2, 2026Updated last week
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Get the default browser☆60Feb 2, 2026Updated last week
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Get the default browser☆28Dec 19, 2023Updated 2 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- Get a Gravatar image from an identifier, such as an email☆42Sep 10, 2021Updated 4 years ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated last year
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 4 months ago
- Validate JavaScript code and report possible syntax errors☆24Aug 12, 2024Updated last year
- Get the hash of a string☆68Feb 5, 2022Updated 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated last year
- Get running processes☆283Feb 3, 2026Updated last week
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Generate a random float☆37Apr 18, 2021Updated 4 years ago
- A safer `.hasOwnProperty()`☆29Jun 21, 2023Updated 2 years ago
- Get the path to an app (macOS)☆64Jul 9, 2022Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Aug 31, 2023Updated 2 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆148Sep 9, 2025Updated 5 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 2 years ago
- Check if the process is running with elevated privileges☆43Aug 11, 2021Updated 4 years ago
- Normalize the newline characters in a string to `\n`☆30Sep 16, 2025Updated 4 months ago