{"_id":"express-mung","_rev":"19-9a3bbd2035f35d5f285006568cff492e","name":"express-mung","description":"Transform an express response (or make until no good)","dist-tags":{"latest":"0.5.1"},"versions":{"0.0.1-alpha":{"name":"express-mung","version":"0.0.1-alpha","description":"Prefer header for HTTP (RFC 7240)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middlware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"54449adacaade69b1f770740a78b34d603f2f3c9","_id":"express-mung@0.0.1-alpha","_shasum":"c61a34a6992dc4e305010be261ad92e50a73bf7c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"c61a34a6992dc4e305010be261ad92e50a73bf7c","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.0.1-alpha.tgz","integrity":"sha512-HFdNnWuU/nOaXzHEqOwxnW2NEprnxsfmfLbEci3wP3/Q4VF//FMOt4Ps97dUYEQHq/Jb7Zk3vxzyPUbaTwMHVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+ovc+1oC2Jli/wuAZd11AYK844ekN7QlqitqjOFJMrQIgUHUyyUGFzPFKHirKmHdKITiOKmgDHcp+oOeL/10IalI="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.0.2-alpha":{"name":"express-mung","version":"0.0.2-alpha","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"4b5ec8321db3515a8b7ea87bbf9b8bbb03fcb627","_id":"express-mung@0.0.2-alpha","_shasum":"a91d5d16f6544e5b730dd208ef078f6fa4897ab0","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"a91d5d16f6544e5b730dd208ef078f6fa4897ab0","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.0.2-alpha.tgz","integrity":"sha512-PYHIbJjfH9DawQKr0zDQrTKxzL8+A5+tVvCzPblvD9d3QxuvGo/Pttf9Zyzu6H7yutCCEc+ngCEYng1b/D/TFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBSpyXyDOA/D4vbQYdl8uWpeHITwXgIbHZwhNYtM8FPsAiEA88UsD5EW0iR1HTmhGrP/5RokPZ13AkmbbDHfrWoNjU4="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.1.0":{"name":"express-mung","version":"0.1.0","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"84871077bdcba20ea59f05cfb7be43bb262183e0","_id":"express-mung@0.1.0","_shasum":"cd47188f7045bc79eb8ab94a286538f185c57962","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"cd47188f7045bc79eb8ab94a286538f185c57962","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.1.0.tgz","integrity":"sha512-zKmcGn50vo7G+pctJtyXCx3q5xvp6PSNv9TLfxynW9LBkkMrcpqPp8LRzbysx9/N91ax5GpWfyb29yS1Mptetw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9/gfmsJ2L1agnOGEskz6wpBNSEQgOT1lm8Kp0nKhemAiEAkdD6Z5YED3944r3lg9ygGW4O4h8tjp0TY/s/vXs09JI="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.1.1":{"name":"express-mung","version":"0.1.1","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"8765890e3e6caeb102491ddfed1a398b75e9563a","_id":"express-mung@0.1.1","_shasum":"25faa5aefb110ceabee0756e5c1fa32cfb43a1e2","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"25faa5aefb110ceabee0756e5c1fa32cfb43a1e2","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.1.1.tgz","integrity":"sha512-Uky3hSgjTxobe8BhV0B0wClthVREWjkgpWYC5NYE1mrh/NsAyp8kY0qt1vFL7MFy943kxosKN/MOe4bj3IZYZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS9ZtGndqDVtx4vnDQUMihV4jSo4muuV8OAUg21kS23gIhAKH+Jjfieq31GIEnzRueNXmxSMv8JfcVwG++dCT0cihQ"}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.2.0":{"name":"express-mung","version":"0.2.0","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"7792bd15850555af3223dfb2c6dbb65e1ce6d5dc","_id":"express-mung@0.2.0","_shasum":"5c5be0d890216728b5b53a8d1288ec2fb1e65c0e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"5c5be0d890216728b5b53a8d1288ec2fb1e65c0e","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.2.0.tgz","integrity":"sha512-LnXXdLaB37vLTUX83/XgtZ2+TGFrSaTVWU8noQiz/lAKNcvYbuCc2wTKsPLbaO42bXNGAli5YWQYd1/C7Jj/KA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSCFjJ/XwVWCUJFrlXsGNvriJ3b4ki0SEJmmliNcRmHgIhAKiTF0IKIgkrFeIO/QNauvfjNzLBXAEWzQ4x2tTiS+07"}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.3.0":{"name":"express-mung","version":"0.3.0","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"9c0f5e1230e2564f4482c8df7e29c5551875dfea","_id":"express-mung@0.3.0","_shasum":"07bc9a93ac253d607d9db9374a6ca08b1199369c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"07bc9a93ac253d607d9db9374a6ca08b1199369c","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.3.0.tgz","integrity":"sha512-/5cq7gpQj20e4DgBZQqz9M1Zjh328TTPsI9cqK6lSLU+vk73vHwgC0+ZmNRRTy22AOhg4poVsmfoewxkchlkHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8qkYTqHQCaoLQuQB/4N+a6//ULoJEWWlmqkJ0vCFBiAIgHYhtOt39EgjoLZxa6il9NSL1sCCEgaSJp/LWbKimuIo="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.3.1":{"name":"express-mung","version":"0.3.1","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"07993f5f6fcb23bb674128f93f7db216723ab3b8","_id":"express-mung@0.3.1","_shasum":"49b985fde39431fba8b7971e666df9db207a9cfb","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"49b985fde39431fba8b7971e666df9db207a9cfb","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.3.1.tgz","integrity":"sha512-XbdP7Rj/leZzaIEybJ/DwLJESzCg3tTqi9OlqYbH5PMMEutnY/s1T4xsON7VXNTaJQDE7FlRESg9oa/kmT+gHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIDleiZZ2y96fEk1zvDQ3V58MnlMAVeK7mKmWCCVe7AAiAKtynqArgdzP3byWhbx2LVMB6Gwyrn2DbDUzd7qpPc2Q=="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.4.1":{"name":"express-mung","version":"0.4.1","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"1ca80bf5e20cdec0cdd0cdf8171a407ba87484be","_id":"express-mung@0.4.1","_shasum":"94050c5a116191f57bc9f3f1a5963cad687d321c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"94050c5a116191f57bc9f3f1a5963cad687d321c","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.4.1.tgz","integrity":"sha512-zR4f7hbzaZozEFCBBjGUnEv3d5UD3R35zz6sYfYz8b/Yei+sbMPUU+SGXz5G2LfJUZurCpCCRNeg9qVtQpSktQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAU0X5fxuRPiYygZwkhAcS31mfuWkJcHt41kjxUdWAvQIhAIyFy7zKzUX14+ycMQMnJTFEGtRx52obka+fj7sVr+2L"}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.4.2":{"name":"express-mung","version":"0.4.2","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"a03b517953ef85f3c34c6b74f6060aaca38c62dc","_id":"express-mung@0.4.2","_shasum":"7882c41c8e5cadcc969ffb922bd8b60c27cdc746","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.0.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"7882c41c8e5cadcc969ffb922bd8b60c27cdc746","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.4.2.tgz","integrity":"sha512-ao+NnLrFIrwLi86TN3A2CAgmRBvl4AsoCcvHMJFJ38zIieVNxTDU+HErCQV0NWVfWpN1/sfIud8XYEPp5fSjWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDhuSd07WbNgon/tvmJB4qdMkeN6ZWvOoF7g22710z0AiEA9eTmrPVi6EtifDiFibwEVdKL02gHRu3kiBT3SeEtXvk="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{}},"0.4.4":{"name":"express-mung","version":"0.4.4","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"contributors":[{"name":"Ido Schachter","email":"ido.schachter@ironsrc.com"}],"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"cb695120c21be7dc6b18b05f24a635bd7a8bd882","_id":"express-mung@0.4.4","_shasum":"e4d15236345c76fbac86339ffea4f7427338f9f1","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"e4d15236345c76fbac86339ffea4f7427338f9f1","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.4.4.tgz","integrity":"sha512-+M6NARxoLh6Bz3J4a+mCxa/yjA3pwYwcK6viyv3GM4Axt8BGXQgluFEsoO0pIsUdHwlCJKM4ogAiz+0JJK6w+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSe2UUpjiyRu3I6My5GwBzsITjrWedWuCJ4htREzVJGAIhAO4R9Nw6uNpWXYzE5OBPmGkwKd/m8wtEmxW1ai1AP+wM"}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/express-mung-0.4.4.tgz_1473752284127_0.956807071575895"},"directories":{}},"0.4.6":{"name":"express-mung","version":"0.4.6","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"contributors":[{"name":"Ido Schachter","email":"ido.schachter@ironsrc.com"}],"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^2.3.4","should":"^7.1.1","supertest":"^1.1.0"},"dependencies":{},"gitHead":"38733e58b95587703f18ff2daf7c8ee28987ed6f","_id":"express-mung@0.4.6","_shasum":"2df169d8e91d9a1d8326319eeb2cf281d16b0eba","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"shasum":"2df169d8e91d9a1d8326319eeb2cf281d16b0eba","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.4.6.tgz","integrity":"sha512-g2lFGduQjkBaAACLow7rZeu8mP6VC57VOgGhXr6+FsOkia7XsRDtQqbREf2jdav4NrPuMKqflUL5ktvCSKJfig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdTYErc7970fhZcwMAQeir1si82ul2YrUoH59GVM4R5QIgJPl4KuQKJWk5olXEvTkLZ926eHSlmQxEn8Iju0hlvgo="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-mung-0.4.6.tgz_1477792851370_0.030288624810054898"},"directories":{}},"0.5.0":{"name":"express-mung","version":"0.5.0","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"contributors":[{"name":"Ido Schachter","email":"ido.schachter@ironsrc.com"},{"name":"Sachin Hegde","email":"sachin.hegde91@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.0.5","express":"^4.13.3","mocha":"^3.2.0","should":"^11.1.1","supertest":"^3.0.0"},"dependencies":{},"gitHead":"cf06f133fad5066926b67daff01c775fd8979fba","_id":"express-mung@0.5.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"integrity":"sha512-QCROjFsL6QiJg1A4k2U3DRygMLcKy4/x4/wPwpws3BhAY7ZLC13H+vBCRVdZdYgw+1b3LX3RTSSAzpQ4a4v3/A==","shasum":"ffb0e4c64320ddaef372a2c1b232f3cec75aa3c3","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.5.0.tgz","fileCount":9,"unpackedSize":28855,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuVDwtJ3V2LX/ihl6p2efwmL2EQNUl3xXPwI7+CxDR+wIgMCVz3/bXkMB15kIxwaQvQBRwzGhXs6DCbgbt8F7Yl9Y="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-mung_0.5.0_1523069853320_0.3419299988313447"},"_hasShrinkwrap":false},"0.5.1":{"name":"express-mung","version":"0.5.1","description":"Transform an express response (or make until no good)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"keywords":["mung","middleware","transform","response","express"],"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"contributors":[{"name":"Ido Schachter","email":"ido.schachter@ironsrc.com"},{"name":"Sachin Hegde","email":"sachin.hegde91@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"homepage":"https://github.com/richardschneider/express-mung#readme","devDependencies":{"bluebird":"^3.5.1","express":"^4.16.3","mocha":"^5.2.0","should":"^13.2.3","supertest":"^3.1.0"},"dependencies":{},"gitHead":"ebb2145ac45347667337e438e409680f36c2d582","_id":"express-mung@0.5.1","_npmVersion":"6.1.0","_nodeVersion":"9.2.0","_npmUser":{"name":"makaretu","email":"makaretu@gmail.com"},"dist":{"integrity":"sha512-5M8Oi2s9ePuP86YMyLT+hefWPPGxuxW3Vnuni/Hq3r2nGE0L4qulG0HkWuc4PIOpzZuZTwONwyfBFtR2xlnfgg==","shasum":"403ca3710745a208c676f1024314f1ead139919a","tarball":"https://registry.npmjs.org/express-mung/-/express-mung-0.5.1.tgz","fileCount":9,"unpackedSize":31570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYtxfCRA9TVsSAnZWagAA7j8P/32ao1Fm2qfq7CdYpgBm\nXTF7m8CSw7vaifXZH2Vwm2BRG6HaJIOkFG3VSozXcyat28AORDu+NEloFgke\nCM6i5NqZFzr6iT3x2NwB59lL02dilnpkYbpZLuZHpOxkbnIY6x8N0IRusAsk\nV7391oHYLFO6U+9Vyn03arrtNxxLRrDCXCELP1l7aa+h8odDEqctDsQgL4cM\nS8Wo5uv/3g4BUa110VGMSouwzDvSig3vRCufhrBrikGBtIg2xzWfrgdGvXD7\n7b/yT0u682NVOOYcWaDEGXgNQeoISZKgUmcex0j7IaHDl5Z0YNSTxwSMJ0Oz\nnKevMJ+i+WXeN6JEGMcL/jM+5tLihm5UvF/Zb15H5QF0sdit3ZGyzPRnxByj\nFvGWG0tw/q5vnfRaMeKToBJ1u1WUay4H6dZVt4y1ciUQOhnIzH6z0v0MXbHB\nUMPl3cKisXH6orMD8jZ5BFY6vW7dt0caKiYx2U9XuylSUnq2N2yNHamSYKXm\n4dLioCvacNHFQBKczyAXeBLnN77kW9BsFEeE2b9rk91o6iyjzlsxh3dcg71Q\nRu6wp5Pr7qtp3vSGJKQ/mOdHGcNQVHX+UIAw+OXse5FpSd38LJ+wjeep/IIG\n4uA9yCL9G8PcG5JcjfJfrkUwiu8CyC2/E8jwnjSM/03M+ftFLpYkvq+mFPDc\nOyjI\r\n=wUQL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3rPI8DzyIg3rAIq6GNBN79z3ELlYK48WUyOIYbEucOwIgbZQ3Z49lqdBqrhWQjsfnHtHr7Ta8T4ZRTKwOtELpwj4="}]},"maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-mung_0.5.1_1533205599180_0.44162905625953686"},"_hasShrinkwrap":false}},"readme":"# express-mung [![Build Status](https://travis-ci.org/richardschneider/express-prefer.svg)](https://travis-ci.org/richardschneider/express-mung)\n\nMiddleware for express responses.\n\nThis package allows synchronous and asynchronous transformation of an express response.  This is a similar concept to the express middleware for a request but for a response.  Note that the middleware is executed in LIFO order.  It is implemented by monkey patching (hooking) the `res.end`, `res.json`, or `res.write` methods.\n\n\n## Getting started [![npm version](https://badge.fury.io/js/express-mung.svg)](https://badge.fury.io/js/express-mung)\n\n    $ npm install express-mung --save\n\nThen in your middleware\n\n    var mung = require('express-mung');\n\n    module.exports = mung.json(my_transform);\n\n## Usage\n\nSample middleware (redact.js) to remove classified information.\n\n````javascript\n'use strict';\nconst mung = require('express-mung');\n\n/* Remove any classified information from the response. */\nfunction redact(body, req, res) {\n    if (body.secret) body.secret = '****';\n    // ...\n    return body;\n}\n\nexports = mung.json(redact);\n````\n\nthen add to your `app.js` file (before the route handling middleware)\n````javascript\napp.use(require('./redact'))\n````\nand [*That's all folks!*](https://www.youtube.com/watch?v=gBzJGckMYO4)\n\nSee the mocha [tests](https://github.com/richardschneider/express-mung/tree/master/test) for some more examples.\n\n## Reference\n\n### mung.json(fn, [options])\n\nTransform the JSON body of the response.\n\n`fn(json, req, res)` receives the JSON as an object, the `req` and `res`.  It returns the modified body. If `undefined` is returned (i.e. nothing) then the original JSON is assumed to be modified.  If `null` is returned, then a 204 No Content HTTP status is returned to client.\n\n### mung.jsonAsync(fn, [options])\n\nAsynchronously transform the JSON body of the response.\n\n`fn(json, req, res)` receives the JSON as an object, the `req` and `res`.  It returns a promise to a modified body.  The promise returns an `object.`  If it is `null` then a 204 No Content is sent to the client.\n\n### mung.headers(fn)\n\nTransform the HTTP headers of the response.\n\n`fn(req, res)` receives the `req` and `res`.  It should modify the header(s) and then return.\n\n### mung.headersAsync(fn)\n\nAsynchronously transform the HTTP headers of the response.\n\n`fn(req, res)` receives the `req` and `res`.  It returns a `promise` to modify the header(s).\n\n### mung.write(fn, [options])\n\n`fn(chunk, encoding, req, res)` receives the string or buffer as `chunk`, its `encoding` if applicable (`null` otherwise), `req` and `res`. It returns the modified body. If `undefined` is returned (i.e. nothing) then the original unmodified chunk is used.\n\n### Notes\n\n* when `mung.json*` receives a scalar value then the `content-type` is switched `text-plain`.\n\n* when `mung.json*` detects that a response has been sent, it will abort.\n\n* sending a response while in `mung.headers*` is **undefined behaviour** and will most likely result in an error.\n\n* when `mung.write` detects that a response has completed (i.e. if `res.end` has been called), it will abort.\n\n* calling `res.json` or `res.send` from `mung.write` can lead to unexpected behavior since they end the response internally.\n\n### options\n\n- `mungError`, when `true` the munger function is always invoked.  When `false` (the default) the munger function is only invoked when the response is not in error.\n\n## Exception handling\n\n`mung` catches any exception (synchronous, asynchronous or Promise reject) and sends an HTTP 500 response with the exception message.  This is done by `mung.onError(err, req, res)`, feel free to redefine it to your needs.\n\n# License\nThe MIT license\n\nCopyright © 2015 Richard Schneider (makaretu@gmail.com)\n","maintainers":[{"name":"makaretu","email":"makaretu@gmail.com"}],"time":{"modified":"2022-06-17T22:27:37.590Z","created":"2015-12-08T22:52:09.357Z","0.0.1-alpha":"2015-12-08T22:52:09.357Z","0.0.2-alpha":"2015-12-08T23:01:34.665Z","0.1.0":"2015-12-09T04:19:06.124Z","0.1.1":"2015-12-09T06:04:41.229Z","0.2.0":"2015-12-09T09:27:39.037Z","0.3.0":"2015-12-09T23:41:37.734Z","0.3.1":"2015-12-10T01:41:12.581Z","0.4.1":"2015-12-22T10:36:43.738Z","0.4.2":"2015-12-22T20:59:05.314Z","0.4.4":"2016-09-13T07:38:07.162Z","0.4.6":"2016-10-30T02:00:51.624Z","0.5.0":"2018-04-07T02:57:33.390Z","0.5.1":"2018-08-02T10:26:39.259Z"},"homepage":"https://github.com/richardschneider/express-mung#readme","keywords":["mung","middleware","transform","response","express"],"repository":{"type":"git","url":"git+https://github.com/richardschneider/express-mung.git"},"author":{"name":"Richard Schneider","email":"makaretu@gmail.com"},"bugs":{"url":"https://github.com/richardschneider/express-mung/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Ido Schachter","email":"ido.schachter@ironsrc.com"},{"name":"Sachin Hegde","email":"sachin.hegde91@gmail.com"}],"users":{"dburdese":true,"jrnail23":true,"slurm":true}}