{"name":"strip-ansi","version":"7.1.2","keywords":["strip","trim","remove","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"strip-ansi@7.1.2","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/chalk/strip-ansi#readme","bugs":{"url":"https://github.com/chalk/strip-ansi/issues"},"dist":{"shasum":"132875abde678c7ea8d691533f2e7e22bb744dba","tarball":"http://registry-npm.ywwl.com/strip-ansi/download/strip-ansi-7.1.2.tgz","fileCount":5,"integrity":"sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==","signatures":[{"sig":"MEYCIQCKhqKRdcI/JAWM26KUYvAdp5Na5OQA4wLvC1DirZPg3QIhAPRGgp4JHYOQjqn7bjVhZnGVHHpK7uZsLdV5VHTodrHr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4120,"size":2101,"noattachment":false,"key":"/strip-ansi/-/strip-ansi-7.1.2.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=12"},"exports":"./index.js","funding":"https://github.com/chalk/strip-ansi?sponsor=1","gitHead":"c51e2883f3579628f7bffd40a13070e563bcc2c6","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/chalk/strip-ansi.git","type":"git"},"_npmVersion":"10.9.2","description":"Strip ANSI escape codes from a string","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"ansi-regex":"^6.0.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/strip-ansi_7.1.2_1757343928967_0.8727537049168383","host":"s3://npm-registry-packages-npm-production"},"readme":"# strip-ansi\n\n> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string\n\n> [!NOTE]\n> Node.js has this built-in now with [`stripVTControlCharacters`](https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr). The benefit of this package is consistent behavior across Node.js versions and faster improvements. The Node.js version is actually based on this package.\n\n## Install\n\n```sh\nnpm install strip-ansi\n```\n\n## Usage\n\n```js\nimport stripAnsi from 'strip-ansi';\n\nstripAnsi('\\u001B[4mUnicorn\\u001B[0m');\n//=> 'Unicorn'\n\nstripAnsi('\\u001B]8;;https://github.com\\u0007Click\\u001B]8;;\\u0007');\n//=> 'Click'\n```\n\n## Related\n\n- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module\n- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module\n- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has 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","publish_time":1757343929146,"_cnpm_publish_time":1757343929146,"dist-tags":{"latest":"7.2.0","version6":"6.0.1"}}