{"_id":"has-ansi","_rev":"4103605","name":"has-ansi","description":"Check if a string has ANSI escape codes","dist-tags":{"latest":"6.0.2"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-01-11T18:46:58.000Z","created":"2014-06-14T19:40:55.321Z","6.0.2":"2025-09-08T15:08:53.260Z","6.0.0":"2024-07-10T23:46:34.489Z","5.0.1":"2021-09-13T18:12:17.678Z","5.0.0":"2021-04-16T07:27:11.602Z","4.0.1":"2021-02-26T09:20:09.495Z","4.0.0":"2019-09-10T19:30:39.907Z","3.0.0":"2017-06-20T19:33:02.569Z","2.0.0":"2015-06-30T16:17:34.067Z","1.0.3":"2015-02-22T09:19:28.925Z","1.0.2":"2015-02-16T17:54:27.012Z","1.0.1":"2014-12-28T11:16:06.415Z","1.0.0":"2014-08-13T19:31:02.679Z","0.1.0":"2014-06-14T19:40:55.321Z"},"users":{"tunnckocore":true,"scottfreecode":true,"mojaray2k":true,"michalskuza":true,"arteffeckt":true,"insomniaqc":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/chalk/has-ansi.git"},"versions":{"6.0.2":{"name":"has-ansi","version":"6.0.2","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.2","gitHead":"8ad46b5ecc1f66de8e526c506d72fbe3e092ef20","types":"./index.d.ts","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.2","dist":{"shasum":"f246fe923a734f19cdd26fe264610d1aece5965b","size":1676,"noattachment":false,"key":"/has-ansi/-/has-ansi-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-6.0.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/has-ansi_6.0.2_1757344133069_0.6146199115128055"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-08T15:08:53.260Z","publish_time":1757344133260,"_source_registry_name":"default","_cnpm_publish_time":1757344133260},"6.0.0":{"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":{"shasum":"8118b2fb548c062f9356c7d5013b192a238ce3b3","size":1676,"noattachment":false,"key":"/has-ansi/-/has-ansi-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_6.0.0_1720655194357_0.8545299904688077"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-10T23:46:34.489Z","publish_time":1720655194489,"_source_registry_name":"default","_cnpm_publish_time":1720655194489},"5.0.1":{"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":{"shasum":"eb5ce8db3465c66e0b83c7f01fd0c1ea87687071","size":1823,"noattachment":false,"key":"/has-ansi/-/has-ansi-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-5.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_5.0.1_1631556737404_0.5638303870101145"},"_hasShrinkwrap":false,"publish_time":1631556737678,"_cnpm_publish_time":1631556737678},"5.0.0":{"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":{"shasum":"186d10d61e1b9428a290926a86e00ab29c203191","size":1841,"noattachment":false,"key":"/has-ansi/-/has-ansi-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_5.0.0_1618558031472_0.8124268955096601"},"_hasShrinkwrap":false,"publish_time":1618558031602,"_cnpm_publish_time":1618558031602},"4.0.1":{"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":{"shasum":"f216a8c8d7b129e490dc15f4a62cc1cdb9603ce8","size":1790,"noattachment":false,"key":"/has-ansi/-/has-ansi-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-4.0.1.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_4.0.1_1614331209303_0.048337302685141026"},"_hasShrinkwrap":false,"publish_time":1614331209495,"_cnpm_publish_time":1614331209495},"4.0.0":{"name":"has-ansi","version":"4.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"},"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":"e0482ff90bc06ba2ab5fe6e06ce6a5b74d15c545","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_id":"has-ansi@4.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"50e6b59f262c855343baff0ba15753247906fcd5","size":1850,"noattachment":false,"key":"/has-ansi/-/has-ansi-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi_4.0.0_1568143839702_0.1041117865762402"},"_hasShrinkwrap":false,"publish_time":1568143839907,"_cnpm_publish_time":1568143839907},"3.0.0":{"name":"has-ansi","version":"3.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"5b1f1e1dace10ad37ec9553aab2fae022a646dab","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"homepage":"https://github.com/chalk/has-ansi#readme","_id":"has-ansi@3.0.0","_shasum":"36077ef1d15f333484aa7fa77a28606f1c655b37","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"36077ef1d15f333484aa7fa77a28606f1c655b37","size":1654,"noattachment":false,"key":"/has-ansi/-/has-ansi-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-ansi-3.0.0.tgz_1497987181489_0.9539871530141681"},"directories":{},"publish_time":1497987182569,"_cnpm_publish_time":1497987182569,"_hasShrinkwrap":false},"2.0.0":{"name":"has-ansi","version":"2.0.0","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-ansi"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^2.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"0722275e1bef139fcd09137da6e5550c3cd368b9","bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@2.0.0","_shasum":"34f5049ce1ecdf2b0649af3ef24e45ed35416d91","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"34f5049ce1ecdf2b0649af3ef24e45ed35416d91","size":1702,"noattachment":false,"key":"/has-ansi/-/has-ansi-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-2.0.0.tgz"},"directories":{},"publish_time":1435681054067,"_cnpm_publish_time":1435681054067,"_hasShrinkwrap":false},"1.0.3":{"name":"has-ansi","version":"1.0.3","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-ansi"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"bin":{"has-ansi":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^1.1.0","get-stdin":"^4.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"416428ed16f8e9718aec54cea083173af6019917","bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@1.0.3","_shasum":"c0b5b1615d9e382b0ff67169d967b425e48ca538","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"dist":{"shasum":"c0b5b1615d9e382b0ff67169d967b425e48ca538","size":2004,"noattachment":false,"key":"/has-ansi/-/has-ansi-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-1.0.3.tgz"},"directories":{},"publish_time":1424596768925,"_cnpm_publish_time":1424596768925,"_hasShrinkwrap":false},"1.0.2":{"name":"has-ansi","version":"1.0.2","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-ansi"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"has-ansi":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^1.0.0","get-stdin":"^4.0.1"},"devDependencies":{"mocha":"*"},"gitHead":"dd528d92b556cbdf442a2dcf72733172a98b8300","bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@1.0.2","_shasum":"93b944b82255606b110c028a7e6fef237e50d7dc","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"93b944b82255606b110c028a7e6fef237e50d7dc","size":1960,"noattachment":false,"key":"/has-ansi/-/has-ansi-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-1.0.2.tgz"},"directories":{},"publish_time":1424109267012,"_cnpm_publish_time":1424109267012,"_hasShrinkwrap":false},"1.0.1":{"name":"has-ansi","version":"1.0.1","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-ansi"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"has-ansi":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^1.0.0","get-stdin":"^3.0.2"},"devDependencies":{"mocha":"*"},"gitHead":"c9cf8ab6ab05ac0cfbc08285e56f439fa67e60dd","bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@1.0.1","_shasum":"ffaa06e14721835d653dc77f1eeee1167825941f","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"ffaa06e14721835d653dc77f1eeee1167825941f","size":1935,"noattachment":false,"key":"/has-ansi/-/has-ansi-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-1.0.1.tgz"},"directories":{},"publish_time":1419765366415,"_cnpm_publish_time":1419765366415,"_hasShrinkwrap":false},"1.0.0":{"name":"has-ansi","version":"1.0.0","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/has-ansi"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"has-ansi":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^1.0.0","get-stdin":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"132e2bed03a264bbf11952d271a76342b7e0c759","bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@1.0.0","_shasum":"a173e6c8832f3952492821b11b8921fedeffbe55","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"a173e6c8832f3952492821b11b8921fedeffbe55","size":1264,"noattachment":false,"key":"/has-ansi/-/has-ansi-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-1.0.0.tgz"},"directories":{},"publish_time":1407958262679,"_cnpm_publish_time":1407958262679,"_hasShrinkwrap":false},"0.1.0":{"name":"has-ansi","version":"0.1.0","description":"Check if a string has ANSI escape codes","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/has-ansi"},"bin":{"has-ansi":"cli.js"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["cli","bin","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","shell","xterm","command-line","text","regex","regexp","re","match","test","find","pattern","has"],"dependencies":{"ansi-regex":"^0.2.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/has-ansi/issues"},"homepage":"https://github.com/sindresorhus/has-ansi","_id":"has-ansi@0.1.0","_shasum":"84f265aae8c0e6a88a12d7022894b7568894c62e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"84f265aae8c0e6a88a12d7022894b7568894c62e","size":1297,"noattachment":false,"key":"/has-ansi/-/has-ansi-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-ansi/download/has-ansi-0.1.0.tgz"},"directories":{},"publish_time":1402774855321,"_cnpm_publish_time":1402774855321,"_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","_attachments":{},"homepage":"https://github.com/chalk/has-ansi#readme","bugs":{"url":"https://github.com/chalk/has-ansi/issues"},"license":"MIT"}