sindresorhus / xdg-basedirView external linksLinks
Get XDG Base Directory paths
☆93Aug 5, 2021Updated 4 years ago
Alternatives and similar repositories for xdg-basedir
Users that are interested in xdg-basedir are comparing it to the libraries listed below
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Truncate a string to a specific width in the terminal☆88Oct 23, 2025Updated 3 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Lax URL parsing with support for protocol-less URLs and IPs☆55Sep 7, 2025Updated 5 months ago
- list of SPDX standard license exceptions☆16Apr 25, 2024Updated last year
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Timeout HTTP/HTTPS requests☆51Sep 9, 2025Updated 5 months ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- fs read and write streams based on minipass☆20Oct 25, 2025Updated 3 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.☆25Nov 26, 2018Updated 7 years ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated 4 months ago
- Get the set npm registry URL☆57Apr 15, 2025Updated 9 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Return true if the file is (or the file path has) a dotfile.☆14May 30, 2017Updated 8 years ago
- Check if a string has ANSI escape codes☆50Sep 8, 2025Updated 5 months ago
- Detect whether or not an object is a Typed Array☆21Jan 23, 2024Updated 2 years ago
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 5 months ago
- Decompress a HTTP response if needed☆75Oct 13, 2025Updated 4 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Returns an object with the base path and the actual pattern from a glob.☆17Apr 12, 2017Updated 8 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- ☆26Dec 7, 2017Updated 8 years ago
- Modern Buffer API polyfill without footguns☆27Apr 22, 2021Updated 4 years ago
- Returns the next buffer/object in a stream's readable queue☆22Jan 17, 2024Updated 2 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year