{"name":"has-ansi","version":"5.0.0","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.0"},"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"525ed42ece7ff77b33fd3ec7f1a5e09b5dafa7c8","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_id":"has-ansi@5.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-196I6rrOXWxQKuYBuNGcQrj6CSUXHM4gNFT9lApuJjkryc4SlAAzv+xhdaQW9yCG1Mvuj3wBwiaqd2Y6R7Fxgg==","shasum":"186d10d61e1b9428a290926a86e00ab29c203191","tarball":"http://registry-npm.ywwl.com/has-ansi/download/has-ansi-5.0.0.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\nwsFcBAEBCAAQBQJgeTxQCRA9TVsSAnZWagAApbsP/0jgoQaMTrbTgylJVAJR\ndmQx52THrRzsO4U7TjePsDSAbxHOSGPvCv6HF4MAGp8mV7eV4GCaIN7nlxcS\nwTQtsFh5yfFn5p2ppadFKlrOWiFVb0JmNqlIK6rOnyOLBxrExAywbnjGULTo\npsY/VmKRGnsJ03GyyUppyGOp+DzAnG6rCC3tlTEfevB0uLvqCP6gfNN7CQur\n+mji27UEXBxI4N+DEmxguF9ZFIJvExPPrYUXCcRdgl4cJ5qZXck+mNxAlNfe\nq+JGzcLrQxU/QIqOFSpItLU5etAub9kY0mp8fBSMyXiNrfE6jpsPSzV4qFVA\n6C/MoW83ElccirC5l/DsC+Y9YSIAYh+2ZC5baSdBxC4/nZpUSPNkqUVCvrl5\nAV/67HALrJNNUdcjItX5nTyv3iWs1nq0BQQA/w1GoxJwAM5OYp4HbUgg4r99\nyoo0nZ6trfvxm2n55UQyLz0QJSmgHHhG9DtL7Jgw51Q1XhC0jMQMyY+nr24w\nxgZjGPZ/5PLxPW9wpSkTKfsy3fWSpxy66+MDLAm9rcSL6J6v9wwqoJ903xjB\nM2OUIJZalKmkc/fcYweRdJSkfstqtpYHISwBM+Sl9FGC9/OMaAw+MGrXQ7H+\nD182po7lpYsBolNXJysus96U9LkWTk9ZhT9C2KvgE2WuT3zYNi7834+mK7Te\n1PH/\r\n=tuhM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8kIl8yS/X5GK9CwKluPCMKaIbiVXuJd6OwIoo4AQtyQIgYYsMtT3pPKZsO3w9S4/bgwBoyoG80nqavD+QRZ6VTFw="}],"size":1841,"noattachment":false,"key":"/has-ansi/-/has-ansi-5.0.0.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_5.0.0_1618558031472_0.8124268955096601"},"_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":1618558031602,"_cnpm_publish_time":1618558031602,"dist-tags":{"latest":"6.0.2"}}