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

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'));
}

0
likes
130
pub points
5%
popularity

Publisher

unverified uploader

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