{"_id":"set-headers","_rev":"1745745","name":"set-headers","description":"Express/Connect middleware to set response headers based on globs","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:30:22.000Z","created":"2014-07-18T18:34:36.953Z","1.0.0":"2014-11-18T22:46:45.101Z","0.1.1":"2014-07-23T21:14:05.489Z","0.1.0":"2014-07-18T18:34:36.953Z"},"users":{},"author":{"name":"Divshot"},"repository":{"type":"git","url":"https://github.com/divshot/set-headers.git"},"versions":{"1.0.0":{"name":"set-headers","version":"1.0.0","description":"Express/Connect middleware to set response headers based on globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/set-headers.git"},"keywords":["glob","headers","response","divshot","superstatic"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/set-headers/issues"},"homepage":"https://github.com/divshot/set-headers","devDependencies":{"connect":"^3.3.3","mocha":"^2.0.1","supertest":"^0.15.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","glob-slasher":"^1.0.1","globject":"^1.0.0","lodash.foreach":"^2.4.1","on-headers":"^1.0.0"},"gitHead":"7093b1927820ca7a3fb273ef5813b5b132238cfa","_id":"set-headers@1.0.0","_shasum":"b8893591514d5396edb93ddda716fa0b0fc98e31","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.31","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"b8893591514d5396edb93ddda716fa0b0fc98e31","tarball":"http://registry-npm.ywwl.com/set-headers/download/set-headers-1.0.0.tgz","integrity":"sha512-MW0rqVcZjQDkdX9ZenzYxpvB3lsILtn3Ii5mMEMosECBH6pDBKld67/PaCdpbKBsXTESQyCHRCj3l2woqrcGpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX1ZoEqJAxsv887hieCNCuKKEwoDNKGmBfPvRr71iXTAIgf/LM5Oa0m+OBSk8rSVkxWnFOJVciZRhBJ0GLJY4GWko="}],"size":2408,"noattachment":false,"key":"/set-headers/-/set-headers-1.0.0.tgz"},"publish_time":1416350805101,"_cnpm_publish_time":1416350805101},"0.1.1":{"name":"set-headers","version":"0.1.1","description":"Express/Connect middleware to set response headers based on globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/set-headers.git"},"keywords":["glob","headers","response","divshot","superstatic"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/set-headers/issues"},"homepage":"https://github.com/divshot/set-headers","devDependencies":{"connect":"^3.0.2","mocha":"^1.20.1","supertest":"^0.13.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","globject":"^0.1.3","lodash.foreach":"^2.4.1","slasher":"^0.1.5"},"gitHead":"1b3b0387de0b43112169074fe6831223322b1c4d","_id":"set-headers@0.1.1","_shasum":"1030fd640e5e736fb6c7b624cdf6b004677508c8","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"1030fd640e5e736fb6c7b624cdf6b004677508c8","tarball":"http://registry-npm.ywwl.com/set-headers/download/set-headers-0.1.1.tgz","integrity":"sha512-OQnZ5v2oAIzrPvARdppmEnvs2tXKdwgNbVQxDEGRo8Sxp67lHpu+pvAX3WlfHUsjwlz8y1unMwX/ggBcQOHcFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHf1g1h3fQzeYWJMRONTkElFPVA1f88qr6ekRxH6jfFAiAHFu5QUzicWeWKL574SAeQTA+pnGZZWlh3lKQdxYh6pg=="}],"size":2304,"noattachment":false,"key":"/set-headers/-/set-headers-0.1.1.tgz"},"publish_time":1406150045489,"_cnpm_publish_time":1406150045489},"0.1.0":{"name":"set-headers","version":"0.1.0","description":"Express/Connect middleware to set response headers based on globs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/ --reporter dot"},"repository":{"type":"git","url":"https://github.com/divshot/set-headers.git"},"keywords":["glob","headers","response","divshot","superstatic"],"author":{"name":"Divshot"},"license":"MIT","bugs":{"url":"https://github.com/divshot/set-headers/issues"},"homepage":"https://github.com/divshot/set-headers","devDependencies":{"connect":"^3.0.2","mocha":"^1.20.1","supertest":"^0.13.0"},"dependencies":{"fast-url-parser":"^1.0.6-0","globject":"^0.1.3","lodash.foreach":"^2.4.1","slasher":"^0.1.5"},"gitHead":"3b75f6a1db276430fce9df19ebfa005ea0e183bc","_id":"set-headers@0.1.0","_shasum":"7af7aab0b0689b46fdbc3c94a4857d484f31cdef","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"7af7aab0b0689b46fdbc3c94a4857d484f31cdef","tarball":"http://registry-npm.ywwl.com/set-headers/download/set-headers-0.1.0.tgz","integrity":"sha512-PFqsUtYvL4OtRPKtruLkXGl/gtqV+aK2sORnRdO8rVfTa7zq/WpBhaNQS8NSr1iEWqg8pL8kArmg72A2k64ymQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUkvW0z1ktAa7w78/mFa3JvR+bCcRJRMN+yPfoJSvMCgIhAIVIcZ3Ya9OOW3BadOLq3ohQzh4KGflnb30jrTRb/xQa"}],"size":2303,"noattachment":false,"key":"/set-headers/-/set-headers-0.1.0.tgz"},"publish_time":1405708476953,"_cnpm_publish_time":1405708476953}},"readme":"# set-headers\n\nExpress/Connect middleware to set response headers based on globs\n\n## Install\n\n```\nnpm install set-headers --save\n```\n\n## Usage\n\n```js\nvar express = require('express');\nvar setHeaders = require('set-headers');\n\nvar app = express();\n\napp.use(setHeaders({\n  '/some/path/**/*.json': {\n    'Content-Type': 'application/json'\n  }\n}));\n\napp.listen(3000, function () {\n  \n});\n```\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","_attachments":{},"homepage":"https://github.com/divshot/set-headers","bugs":{"url":"https://github.com/divshot/set-headers/issues"},"license":"MIT"}