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

example/ansi_strip_example.dart

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'));
}
0
likes
150
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

Strip ANSI escape codes from a string

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

ansi_regex

More

Packages that depend on ansi_strip