{"_id":"stripcolorcodes","_rev":"9-7c927bd6b65623264deb2c763bf4d138","name":"stripcolorcodes","description":"Remove color codes (special characters) with nodejs","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"stripcolorcodes","description":"Remove color codes (special characters) with nodejs","version":"0.1.0","repository":{"type":"git","url":"git@github.com/Filirom1/stripcolorcodes.git"},"main":"index.js","bin":{"stripcolorcodes":"bin/stripcolorcodes.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"dependencies":{},"devDependencies":{"vows":"~0.6.2"},"optionalDependencies":{},"engines":{"node":"*"},"scripts":{"test":"./node_modules/.bin/vows test/*.js --spec"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"stripcolorcodes@0.1.0","_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"1e4ba1b9fef8cc2f0f705bda2bd99db3bca55c80","tarball":"https://registry.npmjs.org/stripcolorcodes/-/stripcolorcodes-0.1.0.tgz","integrity":"sha512-7YglknZJM0D44fZ39OP5h7DVKpQ8WTQdGh8DvUJiu6CwSgNbE5xKJfx9NS7xNwAT74A4EhLwQPTVlzN2MU/B7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+LTH51RArfHl9D5izRsuFaBoDJ/R+OC45ceajNLvGVAiBbx0y+XQatJqTddG1X3UGuDACkmJ8bTxe4w2Ob3Rnbuw=="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}]}},"readme":"# StripColorCodes\n\nWhen using libs like [colors](https://github.com/marak/colors.js/) your\nshell is beautifull but if you store the result in a file, it's not so\ngood :-/\n\n    $ vim myLog\n    \n    20120413045946 ^[[34mdebug:  ^[[39m […n/my-service] Starting my-service on 0.0.0.0:8080 in dev mode·\n    20120413045946 ^[[34mdebug:  ^[[39m […n/my-service] my-service started.·\n\n\nYou have all those ugly codes `^[[34m` everywhere in your logs.\n\n\nSTOP worring about this, use StripColorCodes !\n\n    $ npm install -g stripcolorcodes\n\nYou can use it with unix pipe:\n\n    $ cat /root/.forever/T9ZW.log | stripcolorcodes\n    20120413045946 debug:   […n/my-service] Starting my-service on 0.0.0.0:8080 in dev mode\n    20120413045946 debug:   […n/my-service] my-service started.\n\nOr with a file:\n\n    $ stripcolorcodes /root/.forever/T9ZW.log\n    20120413045946 debug:   […n/my-service] Starting my-service on 0.0.0.0:8080 in dev mode\n    20120413045946 debug:   […n/my-service] my-service started.\n\nOr programmatically:\n\n    var stripColorCodes = require('stripcolorcodes');\n\n    fs.readFile(file, function(err, data){\n      if(err) return console.error(err);\n      process.stdout.write(stripcolorcodes(data.toString()));\n    });\n\nEnjoy !\n\n### LICENCE MIT\n","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}],"time":{"modified":"2022-06-27T01:13:15.764Z","created":"2012-04-13T16:15:54.684Z","0.1.0":"2012-04-13T16:15:55.508Z"},"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"repository":{"type":"git","url":"git@github.com/Filirom1/stripcolorcodes.git"},"users":{"shazron":true,"f.egerer":true,"alphatr":true}}