sindresorhus / ansi-escapesView external linksLinks
ANSI escape codes for manipulating the terminal
☆538Feb 4, 2026Updated last week
Alternatives and similar repositories for ansi-escapes
Users that are interested in ansi-escapes are comparing it to the libraries listed below
Sorting:
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- Wordwrap a string with ANSI escape codes☆131Sep 8, 2025Updated 5 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- ANSI escape codes for styling strings in the terminal☆451Oct 1, 2025Updated 4 months ago
- Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.☆1,140Feb 5, 2026Updated last week
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 2 weeks ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Unicode symbols with fallbacks for older terminals☆620Oct 28, 2024Updated last year
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 5 months ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 5 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Make unhandled promise rejections fail loudly instead of the default silent fail☆282Jan 24, 2021Updated 5 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 2 years ago
- Reliably get the terminal window size☆146Feb 2, 2026Updated 2 weeks ago
- Truncate a string to a specific width in the terminal☆88Oct 23, 2025Updated 3 months ago
- Indent each line in a string☆115Jun 5, 2022Updated 3 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Ensure a function is only called once☆165Feb 2, 2026Updated 2 weeks ago
- Get callsites from the V8 stack trace API☆268Sep 9, 2025Updated 5 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆358Oct 28, 2024Updated last year
- Create Error classes☆41Nov 27, 2018Updated 7 years ago
- Slice a string with ANSI escape codes☆50Updated this week
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆107Jul 8, 2022Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Import a module like with `require()` but from a given path☆86Jul 8, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 5 months ago
- Lax URL parsing with support for protocol-less URLs and IPs☆55Sep 7, 2025Updated 5 months ago