{"_id":"@cjser/strip-ansi-stream","name":"@cjser/strip-ansi-stream","dist-tags":{"latest":"2.0.1-cjser.2"},"versions":{"2.0.1-cjser.2":{"name":"@cjser/strip-ansi-stream","version":"2.0.1-cjser.2","description":"Strip ANSI escape codes","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/chalk/strip-ansi-stream?sponsor=1","type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["strip","trim","remove","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","formatting","rgb","256","shell","xterm","log","logging","command-line","text","stream"],"dependencies":{"replacestream":"^4.0.3","@cjser/ansi-regex":"6.2.2-cjser.2"},"devDependencies":{"ava":"^3","get-stream":"^6.0.1","xo":"^0.44.0"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"2.0.1","cjserVersion":2,"original":{"name":"strip-ansi-stream","version":"2.0.1","exports":"./index.js","repository":"chalk/strip-ansi-stream","dependencies":{"ansi-regex":"^6.0.1","replacestream":"^4.0.3"},"files":["index.js"],"scripts":{"test":"xo && ava"}}},"_id":"@cjser/strip-ansi-stream@2.0.1-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-TRUUQTku8pW9dX0KBskHeM9fe//RyvgVHZL5pRlUTtvbn7W+DHDPP4h/c2buWQQOJK9FoUViAdfRQgvky5x4nA==","shasum":"10a36e9cd468b729e18aab493fb10ded9833d629","tarball":"https://registry.npmjs.org/@cjser/strip-ansi-stream/-/strip-ansi-stream-2.0.1-cjser.2.tgz","fileCount":5,"unpackedSize":5925,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEgWiztaDXV4k3SGqwzLFdxurRQg9BTOI/hdVClkuQsbAiAgm+VTEWGEnRUaTccju5H9jsLXbgBBp8kz7BEeO3Rw9Q=="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip-ansi-stream_2.0.1-cjser.2_1778160150156_0.4884522918332954"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:22:30.069Z","2.0.1-cjser.2":"2026-05-07T13:22:30.355Z","modified":"2026-05-07T13:22:30.578Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Strip ANSI escape codes","keywords":["strip","trim","remove","ansi","styles","color","colour","colors","terminal","console","string","tty","escape","formatting","rgb","256","shell","xterm","log","logging","command-line","text","stream"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"license":"MIT","readme":"# strip-ansi-stream\n\n> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)\n\n## Install\n\n```\n$ npm install strip-ansi-stream\n```\n\n## Usage\n\n```js\nimport stripAnsiStream from 'strip-ansi-stream';\n\nconst stream = stripAnsiStream();\n\nstream.on('data', data => {\n\tconsole.log(data);\n\t//=> 'Unicorn'\n\t//=> 'bar'\n})\n\nstream.write('\\u001B[4mUnicorn\\u001B[0m');\nstream.end('\\u001B[0;33;49;3;9;4mbar\\u001B[0m');\n```\n\n## API\n\n### stripAnsiStream()\n\nReturns a [`Transform` stream](https://nodejs.org/api/stream.html#stream_class_stream_transform) that strips ANSI escape codes.\n\n## Related\n\n- [strip-ansi](https://github.com/chalk/strip-ansi) - Non-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## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/chalk/strip-ansi-stream\n","readmeFilename":"readme.md","_rev":"1-6554fc8d75c32439a1f5a4fa1a818e04"}