{"name":"has-ansi","version":"4.0.1","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chalk/has-ansi.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^4.1.0"},"devDependencies":{"ava":"^2.3.0","xo":"^0.24.0"},"gitHead":"43ec17d1446acc19f483deb57c853ca15c65e58c","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_id":"has-ansi@4.0.1","_nodeVersion":"15.10.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Qr4RtTm30xvEdqUXbSBVWDu+PrTokJOwe/FU+VdfJPk+MXAPoeOzKpRyrDTnZIJwAkQ4oBLTU53nu0HrkF/Z2A==","shasum":"f216a8c8d7b129e490dc15f4a62cc1cdb9603ce8","tarball":"http://registry-npm.ywwl.com/has-ansi/download/has-ansi-4.0.1.tgz","fileCount":4,"unpackedSize":3180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOL1JCRA9TVsSAnZWagAABU4P/1c4ZRYVFC4Vt4abijPt\nuG133PvEaKXywvKAwlMrpcUfEIHeVF07pjpuKjkxqwnHWqZk0BMib5lKryPi\noj7pokaGJpYmRpwXfHfpu2kWUtP8MeMr7ZKBbuMrvHMwu4hF8thqW1IGkoLS\nJGNFDSye8KakFO9L/SPiMmLbGOHrghUvBWFx62QtL5R+vCDZKFyj2G2Y9dWI\nMgpxWYCIotCcGIbgSsGl5uTdjlKYgPPa22Bi65C4SNwBSviX/XI+nafn8pSi\nFSTVuIeQ2sTTzoUm8b+ro7MADKsO8wGBd6jX5BKriFgz5q6edoox9jC/D7ff\nkby0Xw+CzvLVBxxoMr5JgHcU/rVweVifoQuoeuhZI8KDAuwDtZF2tCpjA2rg\nMNoHKsNusdSpKxXOGiuh2aCPOIQyrEsec/OTxsVx5RiLfI8UB0w8/gIkwLri\nIBbGnwfpxKE5BH1ZAghG8XwvXmmN9YIDPrQHSKwgfTV7kf98yU/CBE+xSAGa\nzc2tKg8d5Eq6T3l38/TaC1UwluUs1PxlpQ0gN/r/k8R0YwrJH5ZBq77ytxHc\nPGhh3gDq09vpw2iXIVYoGDdxpAfxocHmfeoUSb59ESI055GPkyOT0oHCt/iM\njx8NxQftFNRBv34zv5+OoONqNxHuh/u2wuI0HhQ1UD4K0scLu2QhqUG/PXHv\no/tn\r\n=fEmW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzypCWRO4qJ1223OVQfLvMoE8xB361FDX33n+YlxXM8wIhAKM8WVJwgwz5B23hqRc+/DIAFrgB411lGXc40M+MhUip"}],"size":1790,"noattachment":false,"key":"/has-ansi/-/has-ansi-4.0.1.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"qix","email":"i.am.qix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_4.0.1_1614331209303_0.048337302685141026"},"_hasShrinkwrap":false,"readme":"# has-ansi\n\n> Check if a string has [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)\n\n## Install\n\n```\n$ npm install has-ansi\n```\n\n## Usage\n\n```js\nimport hasAnsi from 'has-ansi';\n\nhasAnsi('\\u001B[4mUnicorn\\u001B[0m');\n//=> true\n\nhasAnsi('cake');\n//=> false\n```\n\n## Related\n\n- [has-ansi-cli](https://github.com/chalk/has-ansi-cli) - CLI for this module\n- [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes\n- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes\n- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right\n\n## Maintainers\n\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Josh Junon](https://github.com/qix-)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-has-ansi?utm_source=npm-has-ansi&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1614331209495,"_cnpm_publish_time":1614331209495,"dist-tags":{"latest":"6.0.2"}}