{"name":"strip-ansi","version":"7.2.0","description":"Strip ANSI escape codes from a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chalk/strip-ansi.git"},"funding":"https://github.com/chalk/strip-ansi?sponsor=1","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["strip","trim","remove","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-regex":"^6.2.2"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"38ff9f2282540422031ed523f0060c7bb575e20f","_id":"strip-ansi@7.2.0","bugs":{"url":"https://github.com/chalk/strip-ansi/issues"},"homepage":"https://github.com/chalk/strip-ansi#readme","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==","shasum":"d22a269522836a627af8d04b5c3fd2c7fa3e32e3","tarball":"http://registry-npm.ywwl.com/strip-ansi/download/strip-ansi-7.2.0.tgz","fileCount":5,"unpackedSize":4276,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFLADIulmdtDkVR1UqMBq2CySy43fzbfXblvu9cXrQmZAiEA9XdjCh6Gtnap3sFOKgDqYVhnbWm+goAp7ZFsYqZaKoQ="}],"size":2156,"noattachment":false,"key":"/strip-ansi/-/strip-ansi-7.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip-ansi_7.2.0_1772113870951_0.9207259252325153"},"_hasShrinkwrap":false,"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":1772113871099,"_cnpm_publish_time":1772113871099,"dist-tags":{"latest":"7.2.0","version6":"6.0.1"}}