6.0.0 • Published 4 months ago

has-ansi v6.0.0

Weekly downloads
14,967,598
License
MIT
Repository
github
Last release
4 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-juzisamc2samc3samc4samc5sam-carouselsample-frontend-sdkshoots-clishoots2shoots2-cliresponsis-gantt-task-reactresponsive-react-appremmyreact-websocketstechfox-icontechfox-react-feathersticky-scroll-catchsearch-input-reactsearch-list-reactsequelcomponentreact-native-video-typoselect2-selectallreyhan-projecttest-public-proteste_cegidsvavatartextfield-sampletibetvisual-execvue-compmentvcloudcam-playkit-js-hlsvideo-multi-uploaderviber-botkitvite_vue3_ts_ssssdddddyyyyvue-dev-clone3.0.0@esc_games/esc-controller-sdkmehwishnaz16_mybank-_oopmiguelcostero-ng2-toastymini-vue-validatelierah-1lierah-2lierah-3lierah-4lierah-5lierah-6lierah-7lierah-8lierah-9hello_world_foundergrid-component-react-ex-1jest-serializer-ansijest-snapshot-serializer-ansijesusdemojeuxuiicons-vue-testink-quicksearchink-quicksearch-inputink-password-inputink-fuzzysearchivanpantek
6.0.0

4 months ago

5.0.1

3 years ago

5.0.0

4 years ago

4.0.1

4 years ago

4.0.0

5 years ago

3.0.0

7 years ago

2.0.0

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.0

10 years ago