sindresorhus / os-localeView external linksLinks
Get the system locale
☆228Feb 4, 2026Updated last week
Alternatives and similar repositories for os-locale
Users that are interested in os-locale are comparing it to the libraries listed below
Sorting:
- 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
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Mapping between standard locale identifiers and Windows locale identifiers (LCID)☆39Apr 30, 2024Updated last year
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 2 weeks ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- [DEPRECATED] Node.js `os.homedir()` ponyfill☆61Jan 24, 2021Updated 5 years ago
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 5 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Lax URL parsing with support for protocol-less URLs and IPs☆55Sep 7, 2025Updated 5 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Jun 21, 2017Updated 8 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Jan 21, 2026Updated 3 weeks ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulti…☆39Sep 1, 2017Updated 8 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 2 weeks ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 4 years ago
- ☆19Dec 21, 2024Updated last year
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 4 years ago
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year