6.0.0 • Published 10 months ago

has-ansi v6.0.0

Weekly downloads
14,967,598
License
MIT
Repository
github
Last release
10 months ago

has-ansi

Check if a string has ANSI escape codes

Install

npm install has-ansi

Usage

import hasAnsi from 'has-ansi';

hasAnsi('\u001B[4mUnicorn\u001B[0m');
//=> true

hasAnsi('cake');
//=> false

Related

cuc-gafarchetype-libraryrn-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-iconsrn-device-informationcloud-archive-s3bb-chat@phil8795/pecuniarius-apialex-frontend-sdk-stagingreact-native-thanh-toast-librarymutasi-bca@jttechnic/interpreter@thanhnguyen14797/react-native-thanh-toast-librarycthpb-plugin-social@olivervorasai/sliderpanqibaoasterjscogoportutilsukor-remasteruinz-notification@mink-opn/build-tokensunblock-block-save-variables@prodam/prodam-types@saaspe/components@everything-registry/sub-chunk-1828ydw-babeldemop149-tabletanngotest-carosello-campusteadanteawinx-form-winxwheretogowloggerfromansitocsswloggerfromasciitocssweb-component-tester-bundlewebpack_component_fundwed_developerwow.js-juzitechfox-icontechfox-react-feathersticky-scroll-catchtest-public-proteste_cegidsvavatartextfield-sampletibetvisual-execvue-compmentvcloudcam-playkit-js-hlsvideo-multi-uploaderviber-botkitvite_vue3_ts_ssssdddddyyyyvue-dev-clone@dotconf-pro/dotconf-pro@dotconf-pro/dotenv@drubin/garden-cli@ctfdio/picocss-themes@ct-note/table@ct-note/inline-code@ct-note/marker@ct-note/quote@ct-note/simple-image@ct-note/checklist@ct-note/delimiter@ct-note/header@cucumber/cucumber@dan/cryptocoins-icons@dinert/component@dev-blinq/cucumber-js@borealisswap/borealis-swap-lib@caneco/siema@rstacruz/pnpm@rbc-public/react-selectable-fastgenerator-bootstrap-boilerplate-templateivanpantekjeuxuijest-snapshot-serializer-ansijest-serializer-ansijesusdemoka-flow.jskafirchain-tetris3.0.0@esc_games/esc-controller-sdkstart-starwars-libstock-ticker-react-widgetsolregex2uhuy-1uhuy-2uhuy-3tinymce-plugin-toyu-librarytypographic-orphantransferprojectustwo.com-frontendtwine-libtwine-library@aristidenf/streak-counter@artiso-solutions/vue-html-to-paper
6.0.0

10 months ago

5.0.1

4 years ago

5.0.0

4 years ago

4.0.1

4 years ago

4.0.0

6 years ago

3.0.0

8 years ago

2.0.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

11 years ago

0.1.0

11 years ago