sindresorhus / detect-indentView external linksLinks
Detect the indentation of code
☆201Feb 2, 2026Updated last week
Alternatives and similar repositories for detect-indent
Users that are interested in detect-indent are comparing it to the libraries listed below
Sorting:
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 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
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years 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 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Check if a string matches the name of a Node.js builtin module☆63Feb 27, 2025Updated 11 months ago
- Try to guess if your terminal supports unicode☆18Dec 16, 2020Updated 5 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- fs read and write streams based on minipass☆20Oct 25, 2025Updated 3 months ago
- [DEPRECATED] Node.js `os.homedir()` ponyfill☆61Jan 24, 2021Updated 5 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Jun 21, 2017Updated 8 years ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Center-align the text in a string.☆23May 26, 2017Updated 8 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
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Slice a string with ANSI escape codes☆50Sep 8, 2025Updated 5 months ago
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 4 months ago
- Find the root directory of a Node.js project or npm package☆251Feb 1, 2026Updated last week
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- utilities for primitive JavaScript types☆33Nov 29, 2021Updated 4 years ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 4 years ago
- Ensure a function is only called once☆165Feb 2, 2026Updated last week
- ☆26Dec 7, 2017Updated 8 years ago