{"name":"has-ansi","version":"6.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":{"default":"./index.js","types":"./index.d.ts"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"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":"^6.1.3","tsd":"^0.31.1","xo":"^0.58.0"},"_id":"has-ansi@6.0.0","gitHead":"3277295225f4aa102f7349cb5a42d097b6eb3317","types":"./index.d.ts","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-1AYj+gqAskFf9Skb7xuEYMfJqkW3TJ8lukw4Fczw+Y6jRkgxvcE4JiFWuTO4DsoleMvvHudryolA9ObJHJKHWQ==","shasum":"8118b2fb548c062f9356c7d5013b192a238ce3b3","tarball":"http://registry-npm.ywwl.com/has-ansi/download/has-ansi-6.0.0.tgz","fileCount":5,"unpackedSize":3150,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMlwMam7SJtBaw5XrLTUEriPYoi1LVbeSi9cBopYxy4AiEAuLNa32t7e4SUQkL18cDhM5GPu9IiHmSXdEga5lAdHYY="}],"size":1676,"noattachment":false,"key":"/has-ansi/-/has-ansi-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_6.0.0_1720655194357_0.8545299904688077"},"_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```sh\nnpm 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","publish_time":1720655194489,"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"qix","email":"josh@junon.me"}],"_cnpm_publish_time":1720655194489,"dist-tags":{"latest":"6.0.2"}}