ansi_strip 0.1.1+1 copy "ansi_strip: ^0.1.1+1" to clipboard
ansi_strip: ^0.1.1+1 copied to clipboard

Strip ANSI escape codes from a string

ansi_strip #

Strip ANSI escape codes from a string

Install #

$ dart pub add ansi_strip
copied to clipboard

Usage #

import 'package:ansi_strip/ansi_strip.dart';

void main() {

  print(stripAnsi('\u001B[4mUnicorn\u001B[0m'));
  //=> 'Unicorn'

  print(stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'));
}

copied to clipboard
0
likes
150
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.09 - 2025.03.24

Strip ANSI escape codes from a string

Homepage
Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

ansi_regex

More

Packages that depend on ansi_strip