Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths
☆25Jul 9, 2022Updated 3 years ago
Alternatives and similar repositories for protocolify
Users that are interested in protocolify are comparing it to the libraries listed below
Sorting:
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated last month
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Check if a string is a valid filename☆62Aug 16, 2021Updated 4 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Get the path to this package - Useful for testing☆22Aug 9, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆24Nov 22, 2025Updated 3 months ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 3 months ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Get free disk space info from `df -kP`☆64Sep 13, 2025Updated 5 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Open the URL from a web shortcut file☆17Nov 3, 2021Updated 4 years ago
- Open the URL from a web shortcut file in the browser☆20Nov 3, 2021Updated 4 years ago
- Get the hash of a string☆68Feb 5, 2022Updated 4 years ago
- List of prototype properties for JavaScript types☆27Apr 30, 2024Updated last year
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Check if something is a promise☆45Apr 16, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 3 weeks ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Apr 1, 2024Updated last year
- Get the arguments of a function, arrow function, generator function, async function☆54Oct 30, 2023Updated 2 years ago
- Regular expression for matching JavaScript comments☆32Jul 8, 2025Updated 7 months ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Sort an array of numbers☆18Sep 18, 2025Updated 5 months ago
- Clone and modify a RegExp instance☆24Jul 8, 2022Updated 3 years ago
- Get the email of an npm user☆14Feb 26, 2024Updated 2 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Get a Gravatar image from an identifier, such as an email☆42Sep 10, 2021Updated 4 years ago