{"_id":"strip-ansi-control-characters","_rev":"6-87595e756af557367e4223c884a10269","time":{"1.0.0":"2020-04-13T22:57:59.590Z","created":"2020-04-15T03:58:57.412Z","1.0.1":"2020-04-15T03:58:57.582Z","modified":"2022-05-18T21:09:38.407Z","1.1.0":"2020-04-16T15:57:30.784Z","2.0.0":"2020-05-08T07:42:07.884Z"},"name":"strip-ansi-control-characters","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.1":{"name":"strip-ansi-control-characters","version":"1.0.1","description":"Strips ANSI Control Characters from string or stream","main":"index.js","repository":{"type":"git","url":"git+https://github.com/RaeesBhatti/strip-ansi-control-characters.git"},"author":{"name":"Raees Iqbal","email":"raees.bhatti@gmail.com"},"keywords":["ansi","console","terminal","remove","trim","strip","string","tty","escape","command-line","text","log","shell","clear","screen"],"license":"MIT","dependencies":{"replacestream":"^4.0.3"},"gitHead":"58a3042813abd42ebb0fb59cb42c18cc1102dcd0","bugs":{"url":"https://github.com/RaeesBhatti/strip-ansi-control-characters/issues"},"homepage":"https://github.com/RaeesBhatti/strip-ansi-control-characters#readme","_id":"strip-ansi-control-characters@1.0.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-y7GHiYTKph7aYuG8rzaS/o4Db0+52Mng/hzg7kpEJ/yr8/6scBgqy+NEgxmoJgLETFVjiMWaElVgBvtqIrty2Q==","shasum":"41bc338ad86bef756f2c986ad2b25e91aac4a360","tarball":"https://registry.npmjs.org/strip-ansi-control-characters/-/strip-ansi-control-characters-1.0.1.tgz","fileCount":4,"unpackedSize":2803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeloaBCRA9TVsSAnZWagAABMAP/26ukGnCPwU4uEgjBk5e\n7xYaMrqO81BmQvTgyudu7Is73H8M+Rg57GcX8STPtrO9/B8Hx4WVfZTMEvaf\nUid/9MsDASenv7R2mf5s/i/YoIWZE9yk0CK9v1ln9ffhAMUUx5zETNAiXWbT\njHomujevpxtrIlLIS5Amb+9pImDwKLpUFOVyUmAoQNvbvw3M/qixehMYL6Q6\nS4jcjljLnsY3y/bOFiVwTMJY4LyNs/16j/rWKeSWZyf6SmS8HoIJrn0/T43K\nUeEv+q/7e6hgQIkQM/67k5dkg1q1ju9k4/ReM5W2HI4g3wFHTr7urwhSPt+r\n348/5CKZeDnsZcVcgVXQ/Tw3DDRiHAPMfcmcUI7I9k8DdswgfBAvIxyq7OY+\njtjr1+24Eai4ramQTjyqanGC4d5i7JCWr4FO7EAZ+IN9GDGpayFSVfzz2RjM\nRhmneeSgW98jknOHm1TP4YAZ9pOJKDqzpOpYxlVLHGbNGzkT/YNs1rYR5vO9\nduk8Z+/6ebdQ4CilgdItwOrv7Psu7BQxlDR4yEPBmReLoWmcca45ECMxNFyM\nKnLddW6cFfjQPTerKqqrxkO1GdI3cB1I7zTERSEaOg+OzLBhQ/xKTOLiIxHn\nDvTmUEHtnlIJETdtwtFILqjE4pcOy2yrZzMMEjEpJraAtTG2q3S+2OqIo43T\nNbs8\r\n=1Pqs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICH3FWas8XrB7xCwDRuSWK0bfXBkCAeZrGfn6XXKQdHaAiEAsC2Tb16ph/x05ngPZ1Xi2fUXIS7IvBlepcm6N7LxEGw="}]},"maintainers":[{"name":"raeesbhatti","email":"raees.bhatti@gmail.com"}],"_npmUser":{"name":"raeesbhatti","email":"raees.bhatti@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-ansi-control-characters_1.0.1_1586923137412_0.4825334240585495"},"_hasShrinkwrap":false},"2.0.0":{"name":"strip-ansi-control-characters","version":"2.0.0","description":"Strips ANSI Control Characters from string or stream","main":"index.js","repository":{"type":"git","url":"git+https://github.com/RaeesBhatti/strip-ansi-control-characters.git"},"author":{"name":"Raees Iqbal","email":"raees.bhatti@gmail.com"},"keywords":["ansi","console","terminal","remove","trim","strip","string","tty","escape","command-line","text","log","shell","clear","screen"],"license":"MIT","gitHead":"2eed528f12fbc35b5bdc8f87bd6cc089eadf2aa1","bugs":{"url":"https://github.com/RaeesBhatti/strip-ansi-control-characters/issues"},"homepage":"https://github.com/RaeesBhatti/strip-ansi-control-characters#readme","_id":"strip-ansi-control-characters@2.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Q0/k5orrVGeaOlIOUn1gybGU0IcAbgHQT1faLo5hik4DqClKVSaka5xOhNNoRgtfztHVxCYxi7j71mrWom0bIw==","shasum":"8875b5ba3a859a0a44f94e1cf7d3eda8980997b9","tarball":"https://registry.npmjs.org/strip-ansi-control-characters/-/strip-ansi-control-characters-2.0.0.tgz","fileCount":4,"unpackedSize":4978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetQ1QCRA9TVsSAnZWagAA4ncP/2iB9jgUvF+PakwC5aKO\nww+bnrZkWERLJ1yZwv5cg58anAifiRloiLAUTlCrhkl1hhSCo5G91EH5NRPE\nwCvSuTU2DkvuneashNeQahUFreP5KrdCtbDC9/uYKhMnCu+vQ6l6DwR7Bdpa\nCv3Ra3ybyhIbv7my5v1apma+VLIR1nYtYRwZo30SBcfnZT49Xlwd1BBdkriu\nhmkeqF18ojO9FzLRaEuIrmBcETr9FREuXD+S+hzvMXSP0jxeq4fieJK/E/QK\njltZlAGOSu4vvjWLdxEPMe518NCXYq4CbEz9ah9LsWUgqyv8PWbnda4VXbSw\nL6YAp2piqGhcpQJK9pfiHtVuXGawEzgOzNFYJOiNNBs+l8LDj/wl+OwtKchH\n1q/cnnNmf47LEmfxILmHa+AfTdToGaflWbyxQLHbnNKWK9azZmvcXoYo4DqD\nvt8Ts4XBqbb1367P4WdfzFgIQrw3qYJEcdCIYryadXX87Se7nxI0qBMMuEH/\nbapFyrq0elBVGNbE4Ghr0sMvct3qjoMkX57npVhdMM5b78r0TrmXuI1UXJZV\nPEdJI5KLfl6oVmxqBfX/iNsw8ibvHjb/Gn/I8vLr33toGdF++fMnVRT51fDH\n1+ERYpJjkP28qh/A6paK5Ewa45BfZxK5CgJTUW+9k0MHK7W8CsVRHLoF80oS\n2MRm\r\n=6zew\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlJuqIehUZyc+XvCMqjrC75DyhS0DluOEPaBuolIzjaAiEA7pnbQRn9As5+f1wwBkHMo7GEXSYg5SSnowJoPFPFr3w="}]},"maintainers":[{"name":"raeesbhatti","email":"raees.bhatti@gmail.com"}],"_npmUser":{"name":"raeesbhatti","email":"raees.bhatti@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-ansi-control-characters_2.0.0_1588923727769_0.05127701075817215"},"_hasShrinkwrap":false}},"maintainers":[{"name":"raeesbhatti","email":"raees.bhatti@gmail.com"}],"description":"Strips ANSI Control Characters from string or stream","homepage":"https://github.com/RaeesBhatti/strip-ansi-control-characters#readme","keywords":["ansi","console","terminal","remove","trim","strip","string","tty","escape","command-line","text","log","shell","clear","screen"],"repository":{"type":"git","url":"git+https://github.com/RaeesBhatti/strip-ansi-control-characters.git"},"author":{"name":"Raees Iqbal","email":"raees.bhatti@gmail.com"},"bugs":{"url":"https://github.com/RaeesBhatti/strip-ansi-control-characters/issues"},"license":"MIT","readme":"# strip-ansi-control-characters\nStrips ANSI Control Characters from string or stream.\n\n## Use cases\nIf you spawn a child process in NodeJS with `inherit` or\n`pipe` -> `process.std{out,err}` as `stdio`, the child process can clear\nterminal screen or mangle information printed by your application.\nThis package allows you to show output from child process with all colors\nand formatting but without those pesky clear screen or clear line\ncontrol characters.\n\n## API\n\n```js\nfunction stripFromString(input: string): string\nfunction stripFromStream(bufferEncoding: string = 'utf8'): stream.Duplex\n```\n\n## Usage\n```js\nconst stripAnsiCc = require('strip-ansi-control-characters');\nconst child_process = require('child_process');\n\nconst ps = child_process.spawn('vuepress', ['dev'], {\n  env: process.env,\n  stdio: 'pipe',\n});\n\nps.stdout.pipe(stripAnsiCc.stream()).pipe(process.stdout);\nps.stderr.pipe(stripAnsiCc.stream()).pipe(process.stderr);\n```\n\n## License\nMIT license - file included in repo\n","readmeFilename":"README.md"}