{"_id":"express-unless","_rev":"2931755","name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","dist-tags":{"latest":"2.1.3"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"time":{"modified":"2023-03-14T06:28:49.000Z","created":"2014-07-16T13:25:53.942Z","2.1.3":"2022-10-24T16:49:15.357Z","2.1.2":"2022-09-28T21:02:49.701Z","2.1.1":"2022-07-14T06:57:35.644Z","2.1.0":"2022-06-01T14:46:29.702Z","2.0.2":"2022-05-31T18:54:42.533Z","2.0.1":"2022-05-31T18:18:01.374Z","2.0.0":"2022-05-31T17:24:17.316Z","1.0.0":"2021-08-03T20:22:02.539Z","0.5.0":"2018-01-23T19:01:28.049Z","0.4.0":"2018-01-23T18:46:26.246Z","0.3.1":"2017-08-02T17:10:43.478Z","0.3.0":"2015-08-27T12:44:47.363Z","0.1.1":"2015-07-15T17:14:01.415Z","0.1.0":"2015-01-19T11:40:18.683Z","0.0.0":"2014-07-16T13:25:53.942Z"},"users":{"thebearingedge":true,"jonamorua":true,"hal9zillion":true,"mlohscheidt":true,"jamesbedont":true,"wheeney":true,"4rlekin":true,"martinspinks":true,"vjudge":true},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"versions":{"2.1.3":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.1.3","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"gitHead":"fd021fff55f1614e415b0b3fe167429248e173ee","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.1.3","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"shasum":"f951c6cca52a24da3de32d42cfd4db57bc0f9a2e","size":3351,"noattachment":false,"key":"/express-unless/-/express-unless-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.1.3.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.1.3_1666630155215_0.9578560692066955"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-27T09:17:45.878Z","publish_time":1666630155357,"_cnpm_publish_time":1666630155357},"2.1.2":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.1.2","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"types":"./dist/index.d.ts","gitHead":"3be09e04948ff52532e73cbb3a91cffc0490c070","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.1.2","_nodeVersion":"16.15.1","_npmVersion":"8.19.2","dist":{"shasum":"bbd584c6ef4f61c1222e0a6834de65b39201e942","size":3339,"noattachment":false,"key":"/express-unless/-/express-unless-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.1.2.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.1.2_1664398969509_0.37079949309449"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-28T21:04:52.260Z","publish_time":1664398969701,"_cnpm_publish_time":1664398969701},"2.1.1":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.1.1","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"gitHead":"98b362149f9f746f3dcb01d274171b6e37a55d12","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.1.1","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"shasum":"759158b47ec69c33451e97611743598dd0a45038","size":3363,"noattachment":false,"key":"/express-unless/-/express-unless-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.1.1.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.1.1_1657781855492_0.3898271622222449"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-14T07:11:34.812Z","publish_time":1657781855644,"_cnpm_publish_time":1657781855644},"2.1.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.1.0","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"types":"./dist/index.d.ts","gitHead":"e8ccb1665bad13b7732f430bbe8254078a5261fd","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.1.0","_nodeVersion":"14.19.0","_npmVersion":"8.5.3","dist":{"shasum":"090a56de501130e63b8c1aa708cf0bbf4e9c2320","size":3329,"noattachment":false,"key":"/express-unless/-/express-unless-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.1.0.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.1.0_1654094789514_0.36629018153199344"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T15:41:11.874Z","publish_time":1654094789702,"_cnpm_publish_time":1654094789702},"2.0.2":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.0.2","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"types":"./dist/index.d.ts","gitHead":"a13adf22672ce3e8f15422e4e2b1547aeb71c1bc","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.0.2","_nodeVersion":"14.19.0","_npmVersion":"8.5.3","dist":{"shasum":"54709f5732e05e9e04fc13e4be709211cbab48ac","size":3331,"noattachment":false,"key":"/express-unless/-/express-unless-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.0.2.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.0.2_1654023282380_0.7316314438272324"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-31T19:03:13.871Z","publish_time":1654023282533,"_cnpm_publish_time":1654023282533},"2.0.1":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.0.1","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/chai":"^4.3.1","@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"types":"./dist/index.d.ts","gitHead":"3d13c5199a9e9e025bc1db70908fdf19119790c9","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.0.1","_nodeVersion":"14.19.0","_npmVersion":"8.5.3","dist":{"shasum":"39fea3f4112382eb009409bc2c69a1f9753cb311","size":3328,"noattachment":false,"key":"/express-unless/-/express-unless-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.0.1.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.0.1_1654021081161_0.9711396286888272"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-31T18:34:43.798Z","publish_time":1654021081374,"_cnpm_publish_time":1654021081374},"2.0.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"2.0.0","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"./dist/index.js","scripts":{"build":"rm -rf dist && tsc","prepare":"npm run build","test":"mocha -R spec --require ts-node/register test/**","lint":"eslint --fix --ext .ts ./src"},"devDependencies":{"@types/express":"^4.17.13","@types/mocha":"^9.1.1","@typescript-eslint/eslint-plugin":"^5.27.0","@typescript-eslint/parser":"^5.27.0","chai":"^4.3.6","eslint":"^8.16.0","express":"^4.18.1","mocha":"^10.0.0","prettier":"^2.6.2","ts-node":"^10.8.0","typescript":"^4.7.2"},"types":"./dist/index.d.ts","gitHead":"2a4de00de2ca24a44e9ff66c2c529570e82cc94b","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@2.0.0","_nodeVersion":"14.19.0","_npmVersion":"8.5.3","dist":{"shasum":"bb94cd396ea3de7486b4421ea31a418bbf9666de","size":4166,"noattachment":false,"key":"/express-unless/-/express-unless-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-2.0.0.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_2.0.0_1654017857123_0.2328147352169141"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-31T17:34:34.198Z","publish_time":1654017857316,"_cnpm_publish_time":1654017857316},"1.0.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"1.0.0","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"32b9dd9847cc4662a40c1ff987dd08e9ff99d148","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@1.0.0","_nodeVersion":"10.21.0","_npmVersion":"6.14.8","dist":{"shasum":"ecd1c354c5ccf7709a8a17ece617934e037cccd8","size":3464,"noattachment":false,"key":"/express-unless/-/express-unless-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-1.0.0.tgz"},"_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"directories":{},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless_1.0.0_1628022122409_0.025221815223602784"},"_hasShrinkwrap":false,"publish_time":1628022122539,"_cnpm_publish_time":1628022122539},"0.5.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.5.0","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"04b49c4fd8a3c0646524e2434b97f7d6443f58a6","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@0.5.0","_shasum":"c2ece477f4155089143dbb869d07c57c5eb6ab9b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"dist":{"shasum":"c2ece477f4155089143dbb869d07c57c5eb6ab9b","size":3801,"noattachment":false,"key":"/express-unless/-/express-unless-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.5.0.tgz"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless-0.5.0.tgz_1516734087880_0.11421339050866663"},"directories":{},"publish_time":1516734088049,"_hasShrinkwrap":false,"_cnpm_publish_time":1516734088049},"0.4.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.4.0","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"96d10a3c473181931ee8ad0e5da7cd1b82198994","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@0.4.0","_shasum":"28ff4dc706829c58c1b9773f8851c99c8dcd7e3c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"dist":{"shasum":"28ff4dc706829c58c1b9773f8851c99c8dcd7e3c","size":3685,"noattachment":false,"key":"/express-unless/-/express-unless-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.4.0.tgz"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless-0.4.0.tgz_1516733185843_0.17608228023163974"},"directories":{},"publish_time":1516733186246,"_cnpm_publish_time":1516733186246,"_hasShrinkwrap":false},"0.3.1":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.3.1","license":"MIT","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"746300e6b67bf28412a0f221d6f232d508c74f29","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@0.3.1","_shasum":"2557c146e75beb903e2d247f9b5ba01452696e20","_from":".","_npmVersion":"4.2.0","_nodeVersion":"4.4.3","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"dist":{"shasum":"2557c146e75beb903e2d247f9b5ba01452696e20","size":3661,"noattachment":false,"key":"/express-unless/-/express-unless-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.3.1.tgz"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-unless-0.3.1.tgz_1501693841773_0.06894435593858361"},"directories":{},"publish_time":1501693843478,"_hasShrinkwrap":false,"_cnpm_publish_time":1501693843478},"0.3.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.3.0","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"9153bab0c24b661f15efdc83fd56cadbc973a8de","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@0.3.0","_shasum":"5c795e7392571512dd28f520b3857a52b21261a2","_from":".","_npmVersion":"2.14.0","_nodeVersion":"0.12.4","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"dist":{"shasum":"5c795e7392571512dd28f520b3857a52b21261a2","size":2964,"noattachment":false,"key":"/express-unless/-/express-unless-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.3.0.tgz"},"directories":{},"publish_time":1440679487363,"_cnpm_publish_time":1440679487363,"_hasShrinkwrap":false},"0.1.1":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.1.1","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"95fa909b1a24e37286b666d9093ee027c10a7368","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless#readme","_id":"express-unless@0.1.1","_shasum":"8668dfde80aa065d2ad3a4c31b9af0e5217f3c5e","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"dist":{"shasum":"8668dfde80aa065d2ad3a4c31b9af0e5217f3c5e","size":2641,"noattachment":false,"key":"/express-unless/-/express-unless-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.1.1.tgz"},"directories":{},"publish_time":1436980441415,"_cnpm_publish_time":1436980441415,"_hasShrinkwrap":false},"0.1.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.1.0","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"d7a679dfbaf25bb25a9e2333de61a2a11a4bce4a","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless","_id":"express-unless@0.1.0","_shasum":"639a293e56bd40f514099865f73e9a38bbfcb97f","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.10.30","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"dist":{"shasum":"639a293e56bd40f514099865f73e9a38bbfcb97f","size":2569,"noattachment":false,"key":"/express-unless/-/express-unless-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.1.0.tgz"},"directories":{},"publish_time":1421667618683,"_cnpm_publish_time":1421667618683,"_hasShrinkwrap":false},"0.0.0":{"name":"express-unless","description":"Conditionally add a middleware to express with some common patterns.","version":"0.0.0","repository":{"url":"git://github.com/jfromaniello/express-unless.git"},"author":{"name":"José F. Romaniello","email":"jfromaniello@gmail.com","url":"http://joseoncode.com"},"main":"index.js","scripts":{"test":"mocha -R spec"},"dependencies":{},"devDependencies":{"mocha":"~1.11.0","chai":"~1.7.0"},"gitHead":"b4606fdc3c061d186ff332f5855bc1886a049a21","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"homepage":"https://github.com/jfromaniello/express-unless","_id":"express-unless@0.0.0","_shasum":"cadc7285fba8577fb9be047634cfa738806f2bcf","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"jfromaniello","email":"jfromaniello@gmail.com"},"maintainers":[{"name":"jfromaniello","email":"jfromaniello@gmail.com"}],"dist":{"shasum":"cadc7285fba8577fb9be047634cfa738806f2bcf","size":2369,"noattachment":false,"key":"/express-unless/-/express-unless-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/express-unless/download/express-unless-0.0.0.tgz"},"directories":{},"publish_time":1405517153942,"_cnpm_publish_time":1405517153942,"_hasShrinkwrap":false}},"readme":"Conditionally skip a middleware when a condition is met.\n\n## Install\n\n    npm i express-unless --save\n\n## Usage\n\nWith existing middlewares:\n\n```javascript\nvar { unless } = require(\"express-unless\");\n\nvar static = express.static(__dirname + \"/public\");\nstatic.unless = unless;\n\napp.use(static.unless({ method: \"OPTIONS\" }));\n```\n\nIf you are authoring a middleware you can support unless as follow:\n\n```javascript\nvar { unless } = require(\"express-unless\");\n\nmodule.exports = function (middlewareOptions) {\n  var mymid = function (req, res, next) {};\n\n  mymid.unless = unless;\n\n  return mymid;\n};\n```\n\n## Current options\n\n- `method` it could be an string or an array of strings. If the request method match the middleware will not run.\n- `path` it could be an string, a regexp or an array of any of those. It also could be an array of object which is url and methods key-pairs. If the request path or path and method match, the middleware will not run. Check [Examples](#examples) for usage.\n- `ext` it could be an string or an array of strings. If the request path ends with one of these extensions the middleware will not run.\n- `custom` it must be a function that accepts `req` and returns `true` / `false`. If the function returns true for the given request, the middleware will not run.\n- `useOriginalUrl` it should be `true` or `false`, default is `true`. if false, `path` will match against `req.url` instead of `req.originalUrl`. Please refer to [Express API](http://expressjs.com/4x/api.html#request) for the difference between `req.url` and `req.originalUrl`.\n\n## Examples\n\nRequire authentication for every request unless the path is index.html.\n\n```javascript\napp.use(\n  requiresAuth.unless({\n    path: [\"/index.html\", { url: \"/\", methods: [\"GET\", \"PUT\"] }],\n  })\n);\n```\n\nAvoid a fstat for request to routes doesnt end with a given extension.\n\n```javascript\napp.use(\n  static.unless(function (req) {\n    var ext = url.parse(req.originalUrl).pathname.substr(-4);\n    return !~[\".jpg\", \".html\", \".css\", \".js\"].indexOf(ext);\n  })\n);\n```\n\n## License\n\nMIT 2014 - Jose Romaniello\n","_attachments":{},"homepage":"https://github.com/jfromaniello/express-unless#readme","bugs":{"url":"https://github.com/jfromaniello/express-unless/issues"},"license":"MIT"}