{"name":"has-ansi","version":"5.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"},"funding":"https://github.com/chalk/has-ansi?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"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":"^6.0.1"},"devDependencies":{"ava":"^3.15.0","xo":"^0.44.0"},"gitHead":"a285373adebe5e01f325d5a2e9df2686a09bc0d7","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_id":"has-ansi@5.0.1","_nodeVersion":"12.22.1","_npmVersion":"7.20.3","dist":{"integrity":"sha512-Fp2IsZDnnyoJkKg22ZyQFvD7QRCcMTsLAtloKXyXWJ1joGLtItRU9Bv/k1o0tELL2NF3ZZBcycSKryZUM+Yl3g==","shasum":"eb5ce8db3465c66e0b83c7f01fd0c1ea87687071","tarball":"http://registry-npm.ywwl.com/has-ansi/download/has-ansi-5.0.1.tgz","fileCount":4,"unpackedSize":3298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP5SBCRA9TVsSAnZWagAAzaMQAKQxmX2dA8bHpA7EDy6P\nuCT53WV6piLzQHZhJNO5mgrggkOHN2ZHDUqTzR0gEOQ4G9e8TckwA9oFgerW\nmtmmO+iNPdUp3xl6vAAWMcE3vlv7C6bKM2G1qibCjYod5uO9H0Y0CgxjjKPG\nNQwhNDQ09vmrESoD5974HHpOvA0YtOnZCkCDPNt8L7/rMiJnYIstqanjPTHO\nb5GJ8EyW4h33LcGcEpJvoan32NX7k9ltFRFrFOFGw5TKtboRHKA6hq+IVxqk\ndyndPHI+dwy3y9/Y3QIsF19tXCWsOfwrU7PxVlgXARMPxz2W+DGMb/GZ+3e/\nesbqKEmQk1GnSMHEpEvuTFQ5NMH14mMV+cBMTK2+1HY5qi2Hqo4Viq1qq1P+\n713B/8+CUcCXuef180wKvIBT+bpA0nlL8FuDyvisbRzn0wFjX9zWjCJQXmSn\nej/Qx25UH4ujoYrTf9CKmR0sOQ7ChpBhyU9E14mFpmOlFV6MiDJqg+Gg+HES\nwIhKGB2odio6Hf0uJQlHg41mtr6bYbWn77kGD0AgyhBX9OsDDx50Y1+w1k2A\nu7fFdyQ/RifNAqNSqSWSQyDW3zIAAjDP4KhCq7cq70aeAUmFDITsYjssHlL0\nIASJn0HxMaI3nlqR8+mbikkH9krKMU9KrJzHSIXrI4m3xZcQbvAfHTGuY9p8\nq4PQ\r\n=3sgC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6phSQZoV3O9j497xTRlXvV86L2SX9kUJ+XVnn7eRfrAiA6z5qP5TKda9NbhVc0UImwoIkp08FmniR22Ej1ZhZnZw=="}],"size":1823,"noattachment":false,"key":"/has-ansi/-/has-ansi-5.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"qix","email":"josh@junon.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_5.0.1_1631556737404_0.5638303870101145"},"_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":1631556737678,"_cnpm_publish_time":1631556737678,"dist-tags":{"latest":"6.0.2"}}